From: Tobias L. G. <tg...@ul...> - 2003-03-27 02:41:54
|
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 |