我使用Xamarin Android开发Android应用程序。Xamarin Android不幸的应用程序已停止
我试图通过
AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) =>
{
//WRITE TO FILE
};
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
/*
* When a background thread crashes this is the code that will be executed. You can
* recover from this.
*/
};
赶上全球例外我仍然收到“不幸的是应用程序已经停止的错误”频频在各种设备上。错误没有被捕获。
我怀疑这是内存泄漏,但我不确定。我无法访问经常出现此错误的设备的logcat文件。我在我的智慧结束。任何人都可以点亮一下吗?
在一个侧面说明,如果一个全球性的异常被引发和捕获,UnhandledExceptionRaiser在之间中断,不写入文件(这我猜是因为Android的清理过程?)
请张贴的logcat。 – 2014-09-29 11:31:34
@MysticMagic你甚至看这个问题? – 2014-09-29 14:03:32
是的,我读,我读了,太“的错误不是c “但那不会帮助我们帮助你..所以任何方式,祝你好运。 :) – 2014-09-30 04:19:28