When tracking down memory corruptions, I highly recommend valgrind
if you are developing under Linux on x86. The recent version, 3.2.0,
is much faster than previous versions, and fixed some problems that
were interfering with debugging Producer.
Their website: www.valgrind.org
Hints on using valgrind with OSG:
http://www.openscenegraph.org/osgwiki/pmwiki.php/Documentation/TipsAndTricks
On Fri, 23 Jun 2006, Robert Osfield wrote:
Hi Guarav,
You don't need to delete the original scene graph, the ref_ptr<> will
handle this for you when you assign the new data.
As for the crash, I no clue to what might be causing it, loading
sequential database is very commonly done by OSG users without problem
so its likely there is something speicifc you are doing wrong. As to
what it's really up to you to track down.
Robert.
On 6/23/06, gaurav dhingra <[EMAIL PROTECTED]> wrote:
I want to laod osg data from disk on window platform using the following
code
osg::ref_ptr<osg::Node> m_loadedModel; which is in the header
and creating the object in the constructor of the same class.
and using this command
(m_loadedModel = osgDB::readNodeFile(str);)
to read the file.
When I load the first data it simply loads but when i try to load another
data it shows this Unhandled exception error (Unhandled exception at
0x697f07ef in Viewer3Dds.exe: 0xC0000005: Access violation reading location
0x013929dc).
Am I suppose to delete the previously loaded data before loading another
data?..if yes how shall i delete those pointer?
I have tried T * release(),but error persists.
please tell me how to delete previously loaded data?
there is one more problem if i first try to load cessnafire.osg,
fountain.osg, spaceship.osg it shows the same Unhandled exception error.
Send instant messages to your online friends http://uk.messenger.yahoo.com
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
____ __ Eric Sokolowsky (GST) NASA Goddard Space Flight Center
/ __/__/_/__ Visualization Programmer Scientific Visualization Studio
/ __/ _/ / _/ 301.286.3751 Mailstop 610.3 Bldg 28 Rm E102
/___/_//_/__/ [EMAIL PROTECTED] Greenbelt, MD 20771
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/