Derek, CChris: Question about Win32lib's AppCleanUp

new topic     » topic index » view thread      » older message » newer message

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" ))


new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu