Minor code nitpicking with win32lib.ew
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 15, 2002
- 450 views
Derek, here are a few trivial coding changes I'd like to see in Win32lib.ew: 1. Remove the two dashes on the last line, or add a \n character to that line. This triggers a bug in the binder for 2.3. It has been fixed for 2.4, but people will continue to encounter this for a while. 2. Do not have statements like: with trace without trace with profile without profile in released versions of win32lib.ew. The user of win32lib.ew should be free to choose full profiling or tracing (1 or 3) without interference from win32lib.ew 3. Replace the call to the WIN32 API ExitProcess, with abort(0). That way, the Euphoria interpreter will have a chance to do its final cleanup, including outputting the ex.pro profiling information and closing user files, including .dll's. As I vaguely recall, ExitProcess does not flush regular user files that were opened with open(), but never closed with close(). The last few K of buffered data could be lost. Thanks, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com