I mean memory leak reports. Check out the previous posts :<br><br><a href="http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/014323.html">http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/014323.html</a><br>
<a href="http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg22588.html">http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg22588.html</a><br><br>Can<br><br><div class="gmail_quote">2009/3/26 Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC <span dir="ltr"><<a href="mailto:Shayne.Tueller@hill.af.mil">Shayne.Tueller@hill.af.mil</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks for the info. I'm using XP SP3, MSVC 2008.<br>
<br>
Perhaps you could elaborate on what you mean by "false positives" or what<br>
the symptoms are that you're seeing...<br>
<div class="im"><br>
-Shayne<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:osg-users-bounces@lists.openscenegraph.org">osg-users-bounces@lists.openscenegraph.org</a><br>
[mailto:<a href="mailto:osg-users-bounces@lists.openscenegraph.org">osg-users-bounces@lists.openscenegraph.org</a>] On Behalf Of Can T. Oguz<br>
</div><div class="im">Sent: Thursday, March 26, 2009 10:41 AM<br>
To: OpenSceneGraph Users<br>
</div><div><div></div><div class="h5">Subject: Re: [osg-users] New way to workaround MSVC False Positives<br>
<br>
Sorry, forgot to mention : Vista SP1, MSVC 2008. Have you tried it?<br>
<br>
Can<br>
<br>
<br>
2009/3/26 Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC<br>
<<a href="mailto:Shayne.Tueller@hill.af.mil">Shayne.Tueller@hill.af.mil</a>><br>
<br>
<br>
What version of Visual Studio are you using?<br>
<br>
-Shayne<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:osg-users-bounces@lists.openscenegraph.org">osg-users-bounces@lists.openscenegraph.org</a><br>
[mailto:<a href="mailto:osg-users-bounces@lists.openscenegraph.org">osg-users-bounces@lists.openscenegraph.org</a>] On Behalf Of Can<br>
T. Oguz<br>
Sent: Thursday, March 26, 2009 10:25 AM<br>
To: OpenSceneGraph Users<br>
Subject: [osg-users] New way to workaround MSVC False Positives<br>
<br>
Hi OSG Users,<br>
<br>
I think I've found an easier work around to overcome the MSVC false<br>
positives. I had been using the prescription at<br>
<a href="http://www.vis-sim.com/3dsceneBB/viewtopic.php?t=1027" target="_blank">http://www.vis-sim.com/3dsceneBB/viewtopic.php?t=1027</a> to avoid the<br>
leak<br>
false positives for my desktop application and it worked perfectly<br>
but now<br>
I've packed the source into an MFC ActiveX and I saw that all leaks<br>
came<br>
back. So I've removed all the additional dependencies and linked the<br>
dlls by<br>
the directives and all the false positives are gone. I've tested the<br>
leak<br>
detection and it worked ok.<br>
<br>
The new workaround is :<br>
<br>
. Goto project settings. In there, make the following changes for<br>
theDebug<br>
build.<br>
. General->Use of MFC->Use Standard Windows Libraries.<br>
. Add _AFXDLL to C/C++->Preprocessor->Preprocessor Definitions.<br>
. Add the following pragma directives to stdafx.h right after the<br>
MFC<br>
includes:<br>
<br>
#ifdef _DEBUG<br>
#pragma comment(lib, "OpenThreadsd.lib")<br>
#pragma comment(lib, "osgd.lib")<br>
#pragma comment(lib, "osgDBd.lib")<br>
#pragma comment(lib, "osgUtild.lib")<br>
#pragma comment(lib, "osgGAd.lib")<br>
#pragma comment(lib, "osgViewerd.lib")<br>
#pragma comment(lib, "osgTextd.lib")<br>
#pragma comment(lib, "osgSimd.lib")<br>
#else<br>
#pragma comment(lib, "OpenThreads.lib")<br>
#pragma comment(lib, "osg.lib")<br>
#pragma comment(lib, "osgDB.lib")<br>
#pragma comment(lib, "osgUtil.lib")<br>
#pragma comment(lib, "osgGA.lib")<br>
#pragma comment(lib, "osgViewer.lib")<br>
#pragma comment(lib, "osgText.lib")<br>
#pragma comment(lib, "osgSim.lib")<br>
#endif<br>
<br>
#pragma comment(lib, "opengl32.lib")<br>
#pragma comment(lib, "glu32.lib")<br>
<br>
Regards,<br>
<br>
Can<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br>
<br>
<br>
<br>
</div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br>