From: Kenneth B. R. <kbr...@al...> - 2002-03-26 06:03:06
|
> My application needs to swap a GLCanvas and a JPanel in and out of a GUI > Container(JSplitPane). Currently I am destroying a GLCanvas with cvsDispose > () and then rebuilding by recalling the constructor with each swap. > > ... > > On a WinNT machine this call causes a EXCEPTION_ACCESS_VIOLATION outside of > the Java VM. It is happening in the gljDestroyNative() method in > OpenGL_Win32_jawt.c when the native disp_wglDeleteContext(gc) call is > made(Line 713). There is pretty clearly something wrong in that code, as that line is executing entirely inside a block guarded by "if (gc == 0)". Please spend some time and debug it if you can, then send in a patch. Otherwise we'll look at it after JavaOne. BTW, Sven is in San Francisco this week and he and I are giving a talk on OpenGL for Java this Thursday morning at 11. If any of you are at the conference we hope to see you there. |