What to do when aborts don't abort? :Die PUB die...
Oldbitcollector (Jeff)
Posts: 8,091
I'm working on a routine that includes code for condition checking.
I'm calling my PUB from my Main and I can see the report that
a condition has been met with my an "str(string("Condition met"))
but it never comes back with the abort
What would cause an abort to hang instead of coming back to
the original routine that called it's PUB?
I've got something like this in my PUB
if r < 0
term.str(string("failed."))
abort
I see the failed message, but it doesn't wander back for continued execution.
Ideas?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
Post Edited (Oldbitcollector) : 3/17/2009 11:47:06 PM GMT
I'm calling my PUB from my Main and I can see the report that
a condition has been met with my an "str(string("Condition met"))
but it never comes back with the abort
What would cause an abort to hang instead of coming back to
the original routine that called it's PUB?
I've got something like this in my PUB
if r < 0
term.str(string("failed."))
abort
I see the failed message, but it doesn't wander back for continued execution.
Ideas?
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
Post Edited (Oldbitcollector) : 3/17/2009 11:47:06 PM GMT
Comments
Spin wizards here say about this.
Thanks!
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
If not the ABORT returns to the first routine in the Top Object.
Andy
The Propeller Manual explains abort in much more detail. Basically it just POPs the call stack until it reaches a call that 'catches' the abort.
Thank you!
(Now why didn't I catch that from the three pages in the manual!??)
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card connected? - PropDOS
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
Thanks Mike.· := fixed
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Composite NTSC sprite driver: http://forums.parallax.com/showthread.php?p=800114
NTSC color bars (template): http://forums.parallax.com/showthread.php?p=803904
Post Edited (ericball) : 6/15/2009 12:34:43 AM GMT