"InvalidOperationException: Underlying native object" calling "Viewport.ScreenToWorldPoint"

I'm trying to port FlappyGame to LinqPad (using a SimpleApplication.Show instance) - here's the quick share link http share.linqpad.net/gjq59j.linq

The game runs (using CoreAssets and stuff from the UrhoSharp nuget package), but when I click the mouse, and .Viewport.ScreenToWorldPoint(positionX, positionY, 10) is called, I get InvalidOperationException: Underlying native object was deleted for Handle=106497800. Viewport.ScreenToWorldPoint

Any ideas?

Sign In or Register to comment.