From: Tobias L. G. <tg...@ul...> - 2003-03-27 21:35:26
|
Florent, I should have mentioned that you HAVE to use the version of GL4Java that is on SourceForge CVS. Are you using this version ? ? ? If not you should go to this CVS and do a check out and build GL4Java from the sources. Then calling cvsDispose() BEFORE removing the GLCanvas will work for you. Peace, Love and Hair Grease, -TOBY Florent Geffroy wrote: >Oops, I sent my reply to Tobias directly, my mistake, >so here is the mail : > >Hi ! > >Actually, the "glgDestroy Failed" occured when I >called cvsDispose ! I tried everything, but nothing >seemed to work... >As I'm using the GLEventListener way, I thought this >is the reason, maybe a bug when removing the listener. >But as I tried the subclassing way, I saw that it was >the same... >Even if everything is properly closed (canvas stopped, >listener removed, etc.), it occurs when I call >cvsDispose... So, what happens ? > >And a little question : is the developpment of GL4Java >stopped ? Or is Sven Goettel still working on it, and >making a JFC/Swing implementations which works, >because I don't like to mix Swing (JFrame) and AWT >(GLCanvas and not GLJpanel) things together. > >Florent GEFFROY > > --- "Tobias L. George" <tg...@ul...> a >écrit : > Florent, > > >>M'excuse, mais ma frances c'est plus mal que ton >>anglais . . . >>donc . . . I will be responding in english. I think >>that what >>you may need to do to get rid of your problem is to >>make >>certain that you are calling cvsDispose() on the >>GLCanvas >>you are trying to get rid of PRIOR to the canvas >>being >>removed from the window, or its containing >>component. >> >>After this, you will not have the "gljDestroy failed >>. . ." >>message anymore, but I think your app will still >>slow down >>after a while. I am still working on finding this >>problem. >> >> Peace, Love >>and Hair Grease, >> >> >>-TOBY >> >>Florent Geffroy wrote: >> >> >> >>>I have exactly the same problem ! When trying to >>>destroy a Canvas, it tells me something like >>>"gljDestroy failed"... >>>Actually, glj designate the GLContext, but I >>> >>> >>founded >> >> >>>that it is properly closed, so I can't explain why >>>this error occurs... >>> >>>Florent GEFFROY >>> >>>--- "Tobias L. George" <tg...@ul...> a >>>écrit : > Hello all, >>> >>> >>> >>> >>>>I am wondering whether or not anyone else is >>>> >>>> >>having >> >> >>>>trouble >>>>destroying and creating GLCanvases in a single >>>>window. I >>>>have tried with both the binary release from >>>>Jausoft, and the >>>>CVS release that was on sourceforge as of March >>>> >>>> >>22, >> >> >>>>2003. >>>> >>>>I think that something is not being properly >>>>disposed of when >>>>a GLCanvas is destroyed. I am able to create and >>>>destroy >>>>a few GLCanvases but after a while the GLCanvases >>>>that are >>>>created slow to a crawl when drawing. >>>> >>>>Try as I might, I have only been able >>>>to find a single bug in GL4Java. It is in the >>>>GLCanvas code, >>>>during the first paint, the canvas adds itself to >>>>the top level >>>>window as a listener. The problem is, that it >>>> >>>> >>never >> >> >>>>removed >>>>itself as a listener and so it would never get >>>>finalized. This >>>>is not even a bug if you look at it from the point >>>>of view of >>>>always needing to destroy the top-level window in >>>>order to >>>>destroy a GLCanvas, although in practice you end >>>> >>>> >>up >> >> >>>>having >>>>to exit the program. Be that as it may, I am at a >>>>loss for the >>>>moment as to why this slow down is happening when >>>> >>>> >>I >> >> >>>>create >>>>and destroy more than a few GLCanvases. I am >>>>looking >>>>through the GL4Java code again now, and I will >>>> >>>> >>find >> >> >>>>out why >>>>sooner or later by the grace of VisualC, but if >>>>someone has a >>>>clue, could you help a brotha out ? ? ? >>>> >>>> >>>> Peace, Love, and Hair >>>> >>>> >>Grease, >> >> >>>> -TOBY >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>------------------------------------------------------- >> >> >>> >>> >>> >>> >>>>This SF.net email is sponsored by: >>>>The Definitive IT and Networking Event. Be There! >>>>NetWorld+Interop Las Vegas 2003 -- Register today! >>>> >>>> >>>> >>>> >>>> >>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >> >> >>> >>> >>> >>> >>>>_______________________________________________ >>>>gl4java-usergroup mailing list >>>>gl4...@li... >>>> >>>> >>>> >>>> >>>> >>https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup >> >> >> >>___________________________________________________________ >> >> >>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et >>> >>> >>en français ! >> >> >>>Yahoo! Mail : http://fr.mail.yahoo.com >>> >>> >>> >>> >>> >>> >> >> >> >> >------------------------------------------------------- > > >>This SF.net email is sponsored by: >>The Definitive IT and Networking Event. Be There! >>NetWorld+Interop Las Vegas 2003 -- Register today! >> >> >> >http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > > >>_______________________________________________ >>gl4java-usergroup mailing list >>gl4...@li... >> >> >> >https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup > >___________________________________________________________ >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! >Yahoo! Mail : http://fr.mail.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: >The Definitive IT and Networking Event. Be There! >NetWorld+Interop Las Vegas 2003 -- Register today! >http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >_______________________________________________ >gl4java-usergroup mailing list >gl4...@li... >https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup > > > > |