Hi Renesis,

----- "Jean-Sébastien Guay" a écrit :

> Hi Renesis,
> 
> > [...] but now when the program runs I get this runtime error:
> >
> > Code:
> >
> > Windows has triggered a breakpoint in test.exe.
> > This may be due to a corruption of the heap, which indicates a bug
> in test.exe or any of the DLLs it has loaded.
> > This may also be due to the user pressing F12 while test.exe has
> focus.
> > The output window may have more diagnostic information.
> >
> > And then it takes me to malloc.c.
> 
> This is typically because you have compiled your program in debug but
> 
> have linked to release libraries, or the opposite. If you're compiling
> 
> your project in debug you need to link to debug libraries (the OSG 
> libraries have a 'd' at the end when they're debug versions) and vice
> versa.
> 
> Check that your project matches what you're linking to. This always 
> something to check when compiling with Visual C++. You can search the
> 
> net or even this mailing list if you want more information on this,
> it's 
> been discussed at length in the past.
> 
> Hope this helps,

Your test program should also be compiled with /MDd in debug mode and with /MD 
in release mode (see C/C++ / Code generation property page)

-Fred
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to