I don't think that a modal form is in the event loop and will remain active until it is released. Try thisform.release or loop through each active forms and specifically release them. Do you use an ON SHUTDOWN procedure to release forms and do required cleanup before the application closes?
>I am trying to figure out why my application (.EXE) is ignoring Clear Events statement in one form. Basically I have a modal form that has a code in a button click() method: a loop of processing the some data. I put a line:
>
>
Clear Events
>
>in the middle of the procedure but the program at run time simply ignores it. Any other place Clear Events would make the program go to the first line after Read Events, as it supposed to.
>
>Any idea or suggestions?
>
>Thank you.