Explanation of MProtect Errno 12 (ENOMEM)

前端 未结 2 1668
忘了有多久
忘了有多久 2021-01-15 09:59

I\'m writing an iPhone application using Monotouch and recently the app has started crashing stating

Mprotect failed at 0x863a000 (length 8192) with errno 1         


        
2条回答
  •  情深已故
    2021-01-15 10:27

    Does your app use Generics?

    Beware of having virtual methods on types with Generics, for Monotouch, which has to do lots of hacks while pre-jitting and some more magic with trampolines, it can cause some method hijacking, or memory corruption, on my experience, YMMV.

    Make all methods non-virtual on Generic classes for safety.

提交回复
热议问题