I ended up making the OSG-using core of my OSG/C# application in C++, with a thin C wrapper around the functionality that needed to be accessed from the actual application-space. That C library was then easy to invoke from the C# UI and application without nasty ownership and management issues relating to C#/.Net and unmanaged C++, OSG and OSG's pointer classes.
Managed code has its place. And there are places where it's not a good idea at all.
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org