-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
beta2
-
generic
-
generic
Name: rmT116609 Date: 01/31/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
Using JDK 1.1.7B or JDK 1.1.8 or JRE 1.1.8
on WinNT 4.0 (SP5) the following source code
works fine.
But if I switch to SDK 1.2.1, SDK 1.2.2,
SDK 1.3.0 or JRE 1.3.0 an access violation occurs.
--[begin source]--
import java.awt.*;
public class TestGui extends Frame
{
Menu myMenu1;
Menu myMenu2;
public TestGui()
{
this.setTitle("Try to resize this frame!");
this.setSize(300, 300);
this.show();
MenuBar myMenuBar = new MenuBar();
myMenu1 = new Menu( "DemoMenu1" );
myMenu2 = new Menu( "DemoMenu2" );
myMenuBar.add( myMenu1 );
myMenuBar.add( myMenu2 );
this.setMenuBar( myMenuBar );
}
public void changeMenuItems()
{
myMenu1.removeAll();
for ( int i = 0 ; i < 10 ; i++ )
{
MenuItem myMenuItem1 = new MenuItem( "DemoMenuItem" );
myMenu1.add( myMenuItem1 );
}
}
public static void main(String[] argv)
{
TestGui myTestGui = new TestGui();
while (true)
{
myTestGui.changeMenuItems();
}
}
}
--[end source]--
After moving or resizing the frame
I get this console output:
#
# An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM.
# Program counter=0x5005c632
#
and a dialog titled
"java.exe - Application Error",
containing the "stop" icon (red circle -w- white X)
and the text:
The instruction "0x5005c632" referenced
memory at "0x00000002". The memory could
not be "read".
Click on OK to terminate the application
Click on CANCEL to debug the application
If I debug this error I get the info:
Access Violation in java.exe (AWT.dll)
On Solaris 2.8, Linux Redhat6.2, the application causes to
hang the user interface.
(Review ID: 116136)
======================================================================
- relates to
-
JDK-6355707 test/java/awt/Menu/MenuAddRemoveCrash hangs on menu opening
-
- Closed
-