我们在开发者网站发生了一个非常奇怪的错误,我们无法复制自己。
波兰的一位开发人员最近将他的Windows XP Service Pack 3机器升级到4G的Ram。当他这样做时,他开始在使用IBM JDK 1.5的Java程序中体验图形错误。这种错误只发生在IBM JDK 1.5中,而不是在任何其他版本中。
当您在窗体上创建按钮或控件并将鼠标移到窗体上时,问题就会显现出来。
我们有一个测试程序
import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class GraphicTest { public static void main(String args[]) { JFrame frame = new JFrame("GraphicTest"); frame.getContentPane().setLayout(new FlowLayout()); frame.setSize(200, 200); JButton button = new JButton("Test button"); button.setVisible(true); frame.getContentPane().add(button); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }这直接显示了问题。
但是,当我将相同的windows版本升级到Ram的4Gb时,问题不出现在我自己的机器上。
有没有人见过这样的问题?
为了澄清这一点,这个问题只发生在IBM JDK 1.5上,而且只有当我们拥有4Gb的Ram时才会发生。 它不会发生在任何其他版本的JDK上,如果我们将内存量减少到3 Gb,问题就会消失。
We have a very strange error occurring at a developer site which we are unable to replicate ourselves.
A developer in Poland has recently upgraded his Windows XP Service Pack 3 machine to 4Gb of Ram When he did so he started experiencing graphical errors in java programs using IBM JDK 1.5 This errors only occur in IBM JDK 1.5 and not in any other version.
The problem manifests itself when you create a button or control on a form and move the mouse over it.
We have a test program
import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class GraphicTest { public static void main(String args[]) { JFrame frame = new JFrame("GraphicTest"); frame.getContentPane().setLayout(new FlowLayout()); frame.setSize(200, 200); JButton button = new JButton("Test button"); button.setVisible(true); frame.getContentPane().add(button); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }which shows the problem straight away.
However the problem doesn't arise on my own machine when I upgrade the same windows version to 4Gb of Ram.
Has anyone else ever seen an issue like this?
Just to clarify this a bit, this issue only happens with IBM JDK 1.5 and only happens when we have 4Gb of Ram. It doesn't happen on any other version of the JDKs and if we reduce the amount of memory to 3 Gb the problem disappears.
最满意答案
尝试减少Windows图形驱动程序中的硬件优化(可通过扩展显示控制面板访问)。 如果有问题的计算机具有使用主存储器一部分的板载图形适配器,则升级RAM可能会暴露驱动程序中的问题(或者RAM甚至可能出现故障)。
Try reducing the hardware optimization in Windows' graphics drivers (accessible through the extended display control panel). If the machine in question has an onboard graphics adapter that uses a part of the main memory, then upgrading RAM might expose problems in the driver (or the RAM may even be faulty).
使用4Gb Ram和IBM Java 1.5消失的按钮文本(Button text disappearing with 4Gb Ram and IBM Java 1.5)我们在开发者网站发生了一个非常奇怪的错误,我们无法复制自己。
波兰的一位开发人员最近将他的Windows XP Service Pack 3机器升级到4G的Ram。当他这样做时,他开始在使用IBM JDK 1.5的Java程序中体验图形错误。这种错误只发生在IBM JDK 1.5中,而不是在任何其他版本中。
当您在窗体上创建按钮或控件并将鼠标移到窗体上时,问题就会显现出来。
我们有一个测试程序
import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class GraphicTest { public static void main(String args[]) { JFrame frame = new JFrame("GraphicTest"); frame.getContentPane().setLayout(new FlowLayout()); frame.setSize(200, 200); JButton button = new JButton("Test button"); button.setVisible(true); frame.getContentPane().add(button); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }这直接显示了问题。
但是,当我将相同的windows版本升级到Ram的4Gb时,问题不出现在我自己的机器上。
有没有人见过这样的问题?
为了澄清这一点,这个问题只发生在IBM JDK 1.5上,而且只有当我们拥有4Gb的Ram时才会发生。 它不会发生在任何其他版本的JDK上,如果我们将内存量减少到3 Gb,问题就会消失。
We have a very strange error occurring at a developer site which we are unable to replicate ourselves.
A developer in Poland has recently upgraded his Windows XP Service Pack 3 machine to 4Gb of Ram When he did so he started experiencing graphical errors in java programs using IBM JDK 1.5 This errors only occur in IBM JDK 1.5 and not in any other version.
The problem manifests itself when you create a button or control on a form and move the mouse over it.
We have a test program
import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; public class GraphicTest { public static void main(String args[]) { JFrame frame = new JFrame("GraphicTest"); frame.getContentPane().setLayout(new FlowLayout()); frame.setSize(200, 200); JButton button = new JButton("Test button"); button.setVisible(true); frame.getContentPane().add(button); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }which shows the problem straight away.
However the problem doesn't arise on my own machine when I upgrade the same windows version to 4Gb of Ram.
Has anyone else ever seen an issue like this?
Just to clarify this a bit, this issue only happens with IBM JDK 1.5 and only happens when we have 4Gb of Ram. It doesn't happen on any other version of the JDKs and if we reduce the amount of memory to 3 Gb the problem disappears.
最满意答案
尝试减少Windows图形驱动程序中的硬件优化(可通过扩展显示控制面板访问)。 如果有问题的计算机具有使用主存储器一部分的板载图形适配器,则升级RAM可能会暴露驱动程序中的问题(或者RAM甚至可能出现故障)。
Try reducing the hardware optimization in Windows' graphics drivers (accessible through the extended display control panel). If the machine in question has an onboard graphics adapter that uses a part of the main memory, then upgrading RAM might expose problems in the driver (or the RAM may even be faulty).
发布评论