Debugging a lime.exe crash

Does it work on the desktop? If not, that’s probably the simplest place to test. Often, it occurs because of some null reference in your code.

Can you add trace messages to your code, to see how far it gets before it fails? It could tell where it is getting stuck