event handling - Error 1023 Stack overflow with as3-signals-v0.9-BETA -
i using as3-signals-v0.9-beta in simple slide application. in signal handler, dispatching same signal again based on conditions.
the application throws exception after couple of hours on signals dispatch method. below stack trace:
error:
error #1023: stack overflow occurred. @ com.chetansachdev.components::slidedeck/onnextslidepleaseevent()[d:\cb-trunk\solutions\components\slidelib\src\com\chetansachdev\components\slidedeck.as:75] @ org.osflash.signals::slot/execute()[c:\users\robert\documents\flash\osflash\signals\as3-signals\src\org\osflash\signals\slot.as:87] @ org.osflash.signals::oncesignal/dispatch()[c:\users\robert\documents\flash\osflash\signals\as3-signals\src\org\osflash\signals\oncesignal.as:125] @ com.chetansachdev.components::slidedeck/onnextslidepleaseevent()[d:\cb-trunk\solutions\components\slidelib\src\com\chetansachdev\components\slidedeck.as:89] @ org.osflash.signals::slot/execute()[c:\users\robert\documents\flash\osflash\signals\as3-signals\src\org\osflash\signals\slot.as:87] @ org.osflash.signals::oncesignal/dispatch()[c:\users\robert\documents\flash\osflash\signals\as3-signals\src\org\osflash\signals\oncesignal.as:125] ... ...
method:
mysignal.add(mysignalhandler); function mysignalhandler():void { if(condition) { // here.. } else { mysignal.dispatch(); } }
can 1 point me, wrong. when dispatching signal handler, stack getting created? (i not calling method directly, dispatching signal).
it's infinite loop. it's writing this:
function inifityandbeyond(){ infinityandbeyond(); }
in other words doesn't make sense dispatch same signal in handler of signal.
Comments
Post a Comment