Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Android App freezes after GC runs

I have a Xamarin.Android application that includes a native .so that I write, however I'm finding that when the GC runs I get a couple of issues:

  1. If I have the native debugger attached then all the mono signals for the GC fire off in VS. I know with gdb you can tell it not to halt on these signals, but it's pretty disruptive in VS - is there any way to have the VS debugger ignore these?
  2. After the GC has fired, regardless of whether I have the debugger attached or not, my app stops responding to UI input. I can still put a breakpoint in a loop I have running on a background thread and see that it is being hit, so the app isn't completely dead.

Any ideas?



Sign In or Register to comment.