From: Sven G. <sgo...@ja...> - 2001-12-08 00:33:47
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 31 October 2001 17:27, NM...@th... wrote: > Hi, > > I have an application running under WIN2000 using GLCanvas. When the time > comes to exit my app I simply do the following to clean up the resources > used by the GLCanvas : > > try { > cvsDispose(); > } catch (Exception e) { > e.printStackTrace(); > } > > After this call I do a System.exit(0) and I am out. > > My problem is that every 1/3 exits I crash before the standard System.exit > () is called. Below I have included the error log that is always produced > on this crash. What is weird is that it only happens some of the > time(although still too often to be acceptable). Also, I regularly run my > app under WinNT and this crash has NEVER occurred. > > Am I cleaning up after a GLCanvas correctly? > Any suggestions? > > Thanks a bunch in advance, > Noah Keen > > HERE IS THAT LOG FILE WITH THE TRACE : > > An unexpected exception has been detected in native code outside the VM. > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xedeab9a > Function name=DrvValidateVersion > Library=C:\WINNT\system32\mxicd.dll > > Current Java thread: > at gl4java.GLContext.gljDestroyNative(Native Method) > at gl4java.GLContext.gljDestroy(GLContext.java:2497) > at com.skf.ginger.GingerCanvas.closeCanvas(GingerCanvas.java:576) > at com.skf.ginger.GingerConsole.closeModel(GingerConsole.java:737) > at com.skf.ginger.GingerConsole.exit(GingerConsole.java:761) > at > com.skf.ginger.GingerConsole$1.windowClosing(GingerConsole.java:280) > at java.awt.AWTEventMulticaster.windowClosing(Unknown Source) > at java.awt.Window.processWindowEvent(Unknown Source) > at javax.swing.JFrame.processWindowEvent(Unknown Source) <snip> > Local Time = Mon Oct 29 17:42:12 2001 > Elapsed Time = 34 > # > # The exception above was detected in native code outside the VM > # > # Java VM: Java HotSpot(TM) Client VM (1.3.1-b24 mixed mode) > # well, try java 1.3.1_01 but it looks you are using the right cleanup strategie .. like it is shown within the demos .. you might want to try also the finalizer ... ? well looks like a win2k specific thing, sorry i can't support you at this point. how are things now ? with 2.8.1 ? cheers, sven -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8EV/fHdOA30NoFAARAjFOAKCuip/cC9ncNtDwtbrzLjTFhq+f2ACguA+M hr+8klOEoQBwEmId4Bsqj6Y= =Pe91 -----END PGP SIGNATURE----- |