Archeg Archeg - 1 month ago 16
Android Question

Unhandled exception information in VS with MonoAndroid

I'm trying to play with Android emulator and VS.

I've downloaded the GLTriangle20 example from the Mono official site and tried to run it. However it fell at CreateFrameBuffer();
Visual Studio highlights this line with green, pauses the debagger but doesn't show any information about this exception.

I even tried to wrap this line into try/catch, but it doesn't catch anything. VS just stops on that line and says nothing except green highlight. It looks like that:Strange thing

I downloaded JDK, Mono, and Android SDK yesterday, so all these tools are fresh

Answer

Try running without debugging (Ctrl-F5) and check the Android log for the exception:

http://android.xamarin.com/Documentation/Guides/Android_Debug_Log

Comments