From: Tobias L. G. <tg...@ul...> - 2003-03-27 18:15:44
|
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 > > > > |