Hi Clement,

On 16/02/12 13:59 , [email protected] wrote:
> I am using osg version 3.0.1 with MS Visual Studio 2008.  My application is 
> embedded
> osg viewer to display sample, so it is not necessary to build my application 
> with using
> debug version of osg.  The application build settings is using all non-debug 
> osg
> libraries even on "Debug" or "Release" configuration .  I can successfully 
> build the
> application without any error.  If I am using "Release" configuration to 
> build, then
> run the application and there is no any error showed.  While I am using 
> "Debug"
> configuration to build, I got unhandled exception error on runtime.  Anyone 
> knows how I
> can avoid this error. Seems "Debug" configuration settings must be used osg 
> debug
> libraries, but I am not debug the osg.

Even when you don't debug OSG itself you have to use Debug libraries when 
building a Debug
version of your own application.

C++ objects in Visual Studio can vary in size in Debug and Release (e.g. 
because of
additional properties for bounds checking).  So a Debug std::string might be 
bigger than
the Release version.

When your application includes OSG headers the OSG objects can have different 
sizes
depending on the build type and the library that is linked HAS to match that.

There's no way around (it that I'm aware of).

Hope this helps,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to