AndresTraks / BulletSharpPInvoke

.NET wrapper for the Bullet physics library using Platform Invoke
http://andrestraks.github.io/BulletSharp/
150 stars 97 forks source link

Crash when trying to draw the debug world. #77

Closed maddalax closed 3 years ago

maddalax commented 3 years ago

When I try to call debug draw world, it throws this error:

Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at BulletSharp.CollisionWorld.btCollisionWorld_debugDrawWorld(IntPtr)
--------------------------------
   at BulletSharp.CollisionWorld.DebugDrawWorld()

I am using .NET 5.

maddalax commented 3 years ago

Ignore me, I was disposing of the world accidently...