   novodex and clr
  im working on a physx wrapper for .net (2.0), and kept getting an error when creating an actor, so made a new project and cut the c++ code down to:#include "stdafx.h"#include <NxPhysics.h>#include <NxActor.h> #include <NxActorDesc.h> int main(){   // Initialize PhysicsSDKNxPhysicsSDK* sdk = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION );// Create a sceneNxSceneDesc sceneDesc;NxScene* gScene = sdk->createScene(sceneDesc);NxActorDesc actorDesc;NxActor* actor = gScene->createActor(actorDesc);   return 0;}if i compile the app with /clr, then the 'actor' variable is NULL after calling createActor,if i compile the same code but without the /clr switch (normal unmanaged c++), 'actor' is created successfullyany ideas why the clr would cause this?using: visual studio 2005, c++, .net 2.0, physx sdk 2.3.3   
  i found a HAXZOR way of fixing this problem.wrap the function in:#pragma managed(push, off)function(...)#pragma managed(pop)thus disabling managed code in between( hopfully someone can come up with a nicer solution :) )   