jaquadro / LilyPath

A 2D path and shape drawing library for MonoGame and XNA.
MIT License
93 stars 12 forks source link

System.ExecutionEngineException in LilyPathDemo #10

Open RudeySH opened 8 years ago

RudeySH commented 8 years ago

I realize this is a 3-4 year old library by now, but I was hoping someone could help out. I'm trying to build the LilyPathDemo. I had to update OpenTK because it wasn't detecting I'm running Windows. After updating OpenTK and OpenTK.GLControl, I'm getting the following exception on line 79 in GraphicsDeviceService.cs:

Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem

Additional information: The runtime has encountered a fatal error. The address of the error was at 0x731f017b, on thread 0x3598. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

An unhandled exception of type 'System.ExecutionEngineException' occurred in MonoGame.Framework.dll

I realize it's probably an unhelpful generic exception, but it leads me to believe the LilyPathDemo is not compatible with the latest MonoGame or OpenTK.

At the moment I'm unable to see how LilyPath works. I could try figuring it out by looking at the source of the demo but it would be more easy to see it in action right away.

jaquadro commented 8 years ago

So, the demo project is written as a winforms project, but MonoGame hasn't played nicely with WinForms for a couple years now. I think the rest of the library would be fine, but if you want to see it in action, you'll need to embed it into a game (maybe the game demo works?).

RudeySH commented 8 years ago

maybe the game demo works?

Do you mean the Windows 8 store demo with the logo? I haven't tried that one yet, I don't have the Windows 8 SDK installed at the moment.