| Anonymous | Login | Signup for a new account | 2013-05-18 20:52 PDT |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0000436 | [Robot Battle] rsl | minor | always | 2005-07-15 22:20 | 2005-07-15 22:20 | |||||||
| Reporter | jamie | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | new | Product Version | 1.4.05 | |||||||||
| Summary | 0000436: Peculiar event bug with certain simultaneous events | |||||||||||
| Description |
Sorry to submit so many bugs all at once. This is apparently one of those corner cases that slips through because it is so unusual. I'm using a custom event to fake local variables. The custom event is configured to fire whenever the value of _stack changes. When _stack increases, I save the local variables, and when _stack decreases, I restore their previous values. Everything works fine when I invoke sections using gosub(). My custom event is triggered prior to the first line of the subroutine, and again after the last line of the subroutine. When a subroutine is registered as an event handler and triggered by an event, I find that my custom event occurs AFTER the first line of the subroutine. This is the only problem; the end of the routine works just like it does when invoked by gosub(). Attached is a robot that demonstrates this behavior. If it were me, I would probably decide this is not worth fixing. |
|||||||||||
| Additional Information |
Print output from the robot: 1: executing auto_stack (pushing) 1: about to call gosub_section 1: executing auto_stack (pushing) 1: gosub_section first line 1: gosub_section second line 1: gosub_section third line 1: executing auto_stack (popping) 1: about to invoke event handler 1: event_section first line 1: executing auto_stack (pushing) 1: event_section second line 1: event_section last line 1: executing auto_stack (popping) 1: about to leave init section 1: executing auto_stack (popping) |
|||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files |
|
|||||||||||
|
|
||||||||||||
| There are no notes attached to this issue. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2005-07-15 22:20 | jamie | New Issue | |
| 2005-07-15 22:20 | jamie | File Added: eventbug.prg | |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |