hi all,
quick question concerning shared_ptr... not sure if things get deleted
(destroyed) properly and its freaking me out. I hope this is not too long
Basically, I use the BGL to store my data and that seems to be ok. The
way the BGL stuff is defined is as such... Note that spObjectNode is
defined as typedef boost::shared_ptr<CObject> spObjectNode
// Set vertex properties
typedef boost::property
again, hi all....
After writing an example to demonstrate the problem, as per Peter's
request, I could not repro it, until I added this extra line
glutMainLoop(); before the return 0; of main.cpp. As for those how might
not know that glutMainLoop does.... Enters the GLUT event processing
loop, never to return. One would use the GLUT library when writing
OpenGL applications. If I comment out this line, then I can account for
every single class destructor call, i.e. no leaks. When it is NOT
commented, then most of the class destructor calls do not get called, or
printed (this I will verify) and therefore my guess is that there are
leaks. Anyway, since I have done the work to write the test case, I
might as well post it. This code does NOT contain the glutMainLoop() I
mentionned. I could do so if required, but Id need to also send you a
makefile.
When I figure out what is going on, I will let you know... If anyone has
any ideas, please feel free to share!
Thanks, Eric
Test code.....
/*****************************************************************************/
// main.cpp
/*****************************************************************************/
#include <iostream>
#include <string>
#include
Eric Damphousse wrote:
hi all, quick question concerning shared_ptr... not sure if things get deleted (destroyed) properly and its freaking me out. I hope this is not too long [...]
Please post a complete example that demonstrates the problem. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Eric Damphousse wrote:
When I figure out what is going on, I will let you know... If anyone has any ideas, please feel free to share!
Only the obvious one that the glutMainLoop does a direct to system exit. Have you verified that it reaches back to main? -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
I have tried everything except the most obvious. No it does not!!!!!! arghhhh Thanks... I will find a way around this, Eric Rene Rivera wrote:
Eric Damphousse wrote:
When I figure out what is going on, I will let you know... If anyone has any ideas, please feel free to share!
Only the obvious one that the glutMainLoop does a direct to system exit. Have you verified that it reaches back to main?
participants (3)
-
Eric Damphousse
-
Peter Dimov
-
Rene Rivera