Hi Jos - and the rest of you gentlemen,
It might well have been, but no, that was not it, but issuing a Clear Events in the QueryUnload sure did help :-)
Sorry for taking your time, and thank you for taking the trouble to help out!
BR
Peter
>>I have a (very) small app that consists of 1 (one) form.
>>
>>When the user clicks the top right corner X the form closes, but the exe does not terminate.
>>
>>How can I trap this event so that I at least can see what's going on?
>>
>>BR & TIA
>
>
>This is usually because of a "dangling" reference. Something might still be referencing the form and so the app does not quit. How are you instantiating the form?
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)