xamarin.ios – mach_vm_map失败(错误代码= 3)

通过我的iPAD应用程序浏览一段时间后,我注意到应用程序的响应速度越来越慢,最后我的应用程序崩溃,出现以下错误
AppName(1779,0x3d12d18c) malloc: *** mach_vm_map(size=167936) failed (error code=3)
    *** error: can't allocate region
    *** set a breakpoint in malloc_error_break to debug
    Jan  7 11:34:30  AppName[1779] <Error>:   at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
    Jan  7 11:34:30  AppName[1779] <Error>:   at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x0012b>
    Jan  7 11:34:30  AppName[1779] <Error>:   at AppName.Application.Main (string[]) <0x0002f>
    Jan  7 11:34:30  AppName[1779] <Error>:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr) <0xffffffff>

这是一个记忆相关的问题吗?

解决方法

是的,这是一个内存问题:你的内存不足了

我建议你use Instruments尝试追踪任何内存泄漏.

以上是来客网为你收集整理的xamarin.ios – mach_vm_map失败(错误代码= 3)全部内容,希望文章能够帮你解决xamarin.ios – mach_vm_map失败(错误代码= 3)所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。