This is a well known and old  MFC bug 

In that the MFC memory tracer is triggered incorrectly before all objects
destructors etc have been call and reports memory leaks that do not really
exist.  

Do a google there are lots of post on this and possible ways to stop this if
it is a real issue for you


Best Regards 

 

Gordon

__________________________________________________________

Gordon Tomlinson
Email         : [EMAIL PROTECTED]
YIM/AIM       : Gordon3dBrit
MSN IM        : [EMAIL PROTECTED]
Website       : www.3dscenegraph.com
__________________________________________________________

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mustafa
Sent: Tuesday, September 19, 2006 6:00 AM
To: osg users
Subject: Re: [osg-users] OSG debug with VS 2005

Hi Andy,
  Dont wory about these messages. In release mode you will not see any error
or memory dump messages after exiting your application. Briefly, in DEBUG
mode lots of messages, in RELEASE mode nothing...

This is related with MFC runtimes and threading mechanism. I guess that in
DEBUG mode OpenThreads  can not be finalized etc.

But again dont worry, because we are sure that there is no memory leak. It
is tested with some programs (rational etc.) and there is no memory
problem...

Instead of file->exit option, directly press the stop button on
visualstudio. In release mode or in your final production you can use
file->exit without any problem

BR



2006/9/19, Robert Osfield <[EMAIL PROTECTED]>:
> Hi Andy,
>
> Try running your app in a console and catch all the messages, 
> redirectling to a file.  I'm not sure how to do this under Windows, 
> but I wouldn't have thought there would be a way of doing it.  This is
what I do under unices.
>
>   osgviewer cow.osg &> output.txt
>
> This catches all error messages.  If you had cygwin installed the 
> above would work as well.
>
> The OSG has its own message system, they you can control the verbosity 
> of using the OSG_NOTIFY_LEVEL env var, set this to ALWAYS and it'll 
> always eat all messages, set it to NOTICE and it'll only print out 
> important messagages, set to INFO and it'll lots of info about what 
> its doing, and finally DEBUG to print out debug information as well.
>
> You can also set the notification level using 
> osg::setNotifyLevel(osg::INFO);
>
> As the cause of the particular problem I have no clue, as I'm not even 
> sure what problem you are reporting.
>
> Robert.
>
>
>
> On 9/19/06, Andy Preece <[EMAIL PROTECTED]> wrote:
> >
>
>
>
>
> Hi All,
>
>
>
> I am working with OSG 1.1 and MS VS 2005. In the IDE I can switch 
> between debug and release builds. I am working with the OSGMFC example
program.
>
>
>
> When I compile and run with a debug build and I exit the program 
> (using the File -> Exit menu option) I get a mass of messages printed 
> out in the Immediate Window. The messages scroll by so fast it is 
> difficult to read them, but they look like they might be debug 
> information from inside OSG as they mention 'normal data' and 'color
data'.
>
>
>
> I have searched through the OSG src code but can not find any obvious 
> candidates.
>
>
>
> Anyone know what these messages might be? How can I stop them coming 
> out (as they are a real pain when trying to find other bugs)?
>
>
>
> Regards,
>
> Andy.
> ______________________________________________________________________
> __  This e-mail has been scanned for all viruses by Star.The service 
> is powered by MessageLabs.
> ______________________________________________________________________
> __
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
>  http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to