public static class Program
{
public int doSth1(){
return 1;
}
public void doSth2(){
var obj = new object();
}
public int Main(int argc, AnsiChar** argv)
{
// EXC_BAD_ACCESS (code=1, address=0x1)
this.performSelector(__selector(doSth1));
this.performSelector(__selector(doSth2));
}
}
EmptyiOS.zip (110.8 KB)
It seems that this issue is related to Element’s ARC. I’ve tried equivalent objc code which works.