AndresTraks / BulletSharpPInvoke

.NET wrapper for the Bullet physics library using Platform Invoke

Home Page:http://andrestraks.github.io/BulletSharp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when trying to draw the debug world.

maddalax opened this issue · comments

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.

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