-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
None
-
Affects Version/s: 1.1.4, 1.1.5
-
Component/s: client-libs
-
None
-
x86
-
windows_95, windows_nt
Name: ggC50526 Date: 09/24/97
Create a popup menu with some menu items.
Then on a mouse event before showing the
popup menu change the label of one of the
menu items.
This causes a crash in winawt.dll
Sample code:
import java.awt.*;
import java.awt.event.*;
class menu extends Frame
{
MenuItem one, two, three;
public static void main(String args[])
{
new menu();
}
PopupMenu popupMenu;
public menu()
{
super("Test Frame");
enableEvents(MouseEvent.MOUSE_EVENT_MASK |WindowEvent.WINDOW_EVENT_MASK);
popupMenu = new PopupMenu("Popup");
add(popupMenu);
Menu m;
MenuItem mi;
one = new MenuItem("1");
popupMenu.add(one);
two = new MenuItem("2");
popupMenu.add(two);
three = new MenuItem("3");
popupMenu.add(three);
setLocation(200,200);
setSize(300,300);
show();
}
public void processMouseEvent(MouseEvent e)
{
if (e.getID() == MouseEvent.MOUSE_PRESSED) {
one.setLabel("One");
popupMenu.show(this, e.getX(), e.getY());
}
super.processMouseEvent(e);
}
protected void processWindowEvent(WindowEvent e)
{
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
dispose();
System.exit(0);
}
super.processWindowEvent(e);
}
}
End of sample code.
This bug did not occur when using jdk1.1.3.
======================================================================
I am doing some animation with about 100-300 dots
in the applet. I get this message pretty much
every time I run the program. Sometimes it runs
for a long time, and other times it is fairly
quick. Is there a fix for this?
The code is fairly lengthy, but I'd be happy to
send it if you need it. Also, a quick response
would be greately appreciated. Thanx.
APPLETVIEWER caused an invalid page fault in
module WINAWT.DLL at 0137:01f5a7fd.
Registers:
EAX=000005c2 CS=0137 EIP=01f5a7fd EFLGS=00010246
EBX=ffffffc0 SS=013f ESP=01f3fe10 EBP=00717400
ECX=c509ff10 DS=013f ESI=007afc00 FS=556f
EDX=00000005 ES=013f EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 4f 0c 8d 47 0c 85 c9 7e 17 50 ff 15 20 27 f8
Stack dump:
00717430 007afc00 01f5a714 02c0c0c0 00e71b98 01f5ddc9 02c0c0c0 00717430
00717408 01f6da61 00e71b98 ffc0c0c0 02308822 1003942b 00717430 01f3fefc
- duplicates
-
JDK-4091261 MenuItem.setLabel makes PopupMenu.show cause an invalid page fault in winawt.dll
-
- Closed
-
-
JDK-4109221 invoking setLabel after adding a menu item crashes VM on win NT (1.1.6 Build F)
-
- Closed
-