Hi Dirk,

Thanks for the answer! calling osgExit() has no effect on the unfreed memory blocks. :(
I tried in the OSGMFCControl Destructor and in ExitInstance.
You're right, it's not that bad. But it is annoying while developing the application.
I try to switch of the reportings.

greetings,
Michael

Dirk Reiners schrieb:

        Hi Michael,

On Sun, 2005-09-04 at 15:34 +0200, Michael Manz wrote:
Hi all,

I'm using OpenSG with .NET 2003 and MFC and the debugger reports huge memory leaks.

You have to differentiate between huge and a lot. OpenSG uses quite a
lot of global structures that are created dynamically at startup time,
and as such can show up as a memory leak. Most of them are deleted when
calling osgEdit() (which the MFC Example doesn't do), but there are
still some left. But those are only allocated once and they don't change
or grow over the lifetime of the program, so they're not a problem.

What is cause of concern are programs that grow indefinitely at run-
time. That an indication of a dynamic memory leak, and that is something
that needs to be fixed.

So I'd recommend making sure that osgExit is called, and primarily worry
about programs that grow and not necessarily the number of memory blocks
that haven't been freed at the end of the program.

Yours

        Dirk





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to