Derek, CChris: Question about Win32lib's AppCleanUp
- Posted by Judith Evans <camping at ccewb.net> May 08, 2007
- 688 views
I'm trying to find a way to close IDE after Win32lib displays a fatal error message while running the IDE generated exw. But what I am trying doesn't work. But I obviously do not know what to do.
function AppCleanUp(integer ErrCode, sequence ErrText, integer ControlId, integer LastCleanUp) if ErrCode then VOID=message_box("closing IDE due to Winlib fatal error","",0) VOID=invokeHandler(Controls, w32HClose,{}) end if return 0 -- Continue with other clean up routines. end function -- Link in clean-up routine VOID = attachCleanUp( routine_id("AppCleanUp" ))