Bug #2221
By zhangxm Posted 2013-05-24 09:30
demo
<pre>
void MyClass::callback1()
{
....
CCDelayTime* delay = CCDelayTime:create(1.0f);
CCCallFunc* call = CCCallFunc::create(this, callfunc_selector(MyClass::callback2));
runAction(CCSequence::create(delay, call, NULL));
}
void MyClass::callback2()
{
....
}
void MyClass::tets()
{
runAction(CCCallFunc::create(this, callfunc_selector(MyClass::callback1));
}
</pre>
Error log:
<pre>
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
</pre>
I haven't tested it.
<pre>
void MyClass::callback1()
{
....
CCDelayTime* delay = CCDelayTime:create(1.0f);
CCCallFunc* call = CCCallFunc::create(this, callfunc_selector(MyClass::callback2));
runAction(CCSequence::create(delay, call, NULL));
}
void MyClass::callback2()
{
....
}
void MyClass::tets()
{
runAction(CCCallFunc::create(this, callfunc_selector(MyClass::callback1));
}
</pre>
Error log:
<pre>
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
</pre>
I haven't tested it.