As Jean-Sebastien already said, If the dae plugin is linked against, for example, msvcr90d.dll, then it is generally good idea to link all its dependant dlls to the same runtime (msvcr90d.dll). That usually means you will have to recompile collada and all its external libs from source. Of course, it is posible that the problem is elsewhere...
Robert Milharcic > -----Original Message----- > From: [email protected] [mailto:osg-users- > [email protected]] On Behalf Of Héctor Martínez > Sent: Friday, September 09, 2011 12:15 PM > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] OSG Collada plugin > > Hi, > > I am still having the same problem. Does somebody have any idea of what is > happening? > > Thank you. > > Héctor > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Héctor > Martínez > Sent: miércoles, 24 de agosto de 2011 9:29 > To: 'OpenSceneGraph Users' > Subject: Re: [osg-users] OSG Collada plugin > > Hi Jean-Sebastien, > > thank you for your response. It is possible that I am missing something, but > it seems that every library is in debug mode. I have checked with > Dependency Walker the libs and I have all the debug dependencies in the > folder. I have exported one single cube with Blender, just to check that > there are no problems with textures and the same problem is happening. > > If I try to run the application from command line instead of from Visual > Studio, this is the error that I find: > > HEAP CORRUPTION DETECTED: after Normal block (#37612) at > 0x0047CF58. > CRT detected that the application wrote to memory after end of > heap buffer. > > And I have seen that the messages in the command line goes a bit further > than in VS: > ReaderWriterDAE( "OSG/box.dae" ) > URI loaded: OSG/box.dae > Adding parent0039C498 > Adding parent0039C498 > > Maybe those lines can be helpful to see where the problem is... > > Héctor > > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Jean- > Sébastien Guay > Sent: martes, 23 de agosto de 2011 15:35 > To: OpenSceneGraph Users > Subject: Re: [osg-users] OSG Collada plugin > > Hi Héctor, > > > I am having some problems to load collada files into my project. I > > have used the collada dom lib (libcollada14dom21) to build the plugin. > > > > The line that is throwing the breakpoint is: > > > > osg::ref_ptr<osg::Node> model = osgDB::readNodeFile(modelFilePath); > > This line will be loading the collada plugin, as well as the collada DOM DLLs > and others the plugin depends on. So if that line is making your app crash, I > would suspect the common gotcha about linking debug and release > together (or in general, different runtimes). > > So check your compile settings and make sure all your libs and DLLs (even > the collada ones and its dependencies) are differentiated between debug > and release, and that they all match in the linker settings. > > Hope this helps, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://www.cm-labs.com/ > http://whitestar02.dyndns-web.com/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

