Xamarin iOS c__AnonStorey1
Xamarin iOS c__AnonStorey1
我检索了关于我的应用程序的崩溃日志。
System.NullReferenceExceptionObject reference not set to an instance of an object
Raw TouristApp.PuntiEventiView.c__AnonStorey1.<>m__0()
Foundation.NSActionDispatcher.Apply()
UIKit.UIApplication.UIApplicationMain(int, string[], intptr, intptr)(wrapper managed-to-native)
UIKit.UIApplication.Main(string[] args, IntPtr principal, IntPtr delegate)
UIKit.UIApplication.Main(string[] args, string principalClassName, string delegateClassName)
TouristApp.Application.Main(string[] args)
我不知道这个错误,在我的 class (PuntiEventiView) 中没有调用 c__AnonStorey1.m(它似乎是一个 Mono 文件)。
有什么想法吗?
逐步调试您的应用。您在某处使用匿名委托或 lambda 会导致 NULL ref 异常。
c__AnonStorey1
是编译器生成的 class,它捕获您的局部变量。
(这里用我的crystal球来猜,因为你没有显示任何代码)
我检索了关于我的应用程序的崩溃日志。
System.NullReferenceExceptionObject reference not set to an instance of an object
Raw TouristApp.PuntiEventiView.c__AnonStorey1.<>m__0()
Foundation.NSActionDispatcher.Apply()
UIKit.UIApplication.UIApplicationMain(int, string[], intptr, intptr)(wrapper managed-to-native)
UIKit.UIApplication.Main(string[] args, IntPtr principal, IntPtr delegate)
UIKit.UIApplication.Main(string[] args, string principalClassName, string delegateClassName)
TouristApp.Application.Main(string[] args)
我不知道这个错误,在我的 class (PuntiEventiView) 中没有调用 c__AnonStorey1.m(它似乎是一个 Mono 文件)。
有什么想法吗?
逐步调试您的应用。您在某处使用匿名委托或 lambda 会导致 NULL ref 异常。
c__AnonStorey1
是编译器生成的 class,它捕获您的局部变量。
(这里用我的crystal球来猜,因为你没有显示任何代码)