Re: BREAKing into Euphoria
- Posted by Robert Craig <rds at Ra?idEu?horia.com> Sep 12, 2007
- 1959 views
Pete Lomax wrote: > Robert Craig wrote: > > Pete Lomax wrote: > > > > > > I got some "interesting" results (random crashes mainly) from this, > > > however > > > enough of it works to show that something is possible (comments, Rob?): > > > Maybe there is a generic problem with trace in call_back routines?? > > > > Possibly. I'm not sure. > > I guess SetConsoleCtrlHandler is invoking the Eu code I posted much like OS > threads, so if it is not thread-safe then random crashes will occur. Hence any > such code would have to be in the back end rather than Eu code, unless > something > can be done along the lines of task_yield(). If you break out of the interpreter at a random point, and then re-enter the interpreter, there could be problems. It might have been in the middle of some sensitive operation that was not completed properly. Multitasking in Euphoria only uses one O/S thread, and a task switch only happens at a task_yield() so everything is safe. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com