Hi Garrett,
I recently moved from VS2005 to VS2010 and all of my MFC based projects now die
with the same memory access error in memcpy_s() when setting up the
manipulator. The osgviewerMFC example experiences the same issue. Has anyone
gotten an osg-MFC example compiled through VS2010 yet?
It seems to happen when the manipulator name string is copied over, but if this
is commented out I just get memory read/write related errors elsewhere... So
perhaps the hWnd pointer is not valid at this point? Any ideas would be
appreciated.
I doubt this is related in any way to VS 2010, because we and others
around the world are using OSG with VS 2010 successfully. I suspect in
recompiling OSG for VS 2010 you have perhaps gotten your versions mixed
up, i.e. your application compiled in debug is linking to a release OSG,
or vice versa. Or it may be that you have another version of OSG on your
machine built with VS 2005 and you are linking to the VS 2010 version at
compile time but at runtime your app ends up using the VS 2005 version.
Running your app through Dependency Walker might help to figure out
what's happening if just checking your build settings and system PATH
doesn't give you any clues.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org