It was that indeed.
Thank you very much to you Steve and everyone that helped me... everything is perfect now.
Have a nice day!
Réal
>Real,
>
>Do you by any chance have _screen.visible = .t. statement that is executing when your application shuts down? If so, remove that line.
>
>
>>>You must have Read Events statement somewhere (see VFP help) or your startup form must be modal.
>>========================
>>Hi Plamen,
>>
>>Ok. Now the small sample program works just fine in both .APP and .EXE format. And the VFP window in the background does not show (as expected) when I add _SCREEN.Visible = .F. in the main program.
>>
>>When I run this application, there is a fast flash before I can see the Form. It seems to open and close the background VFP window. But if I put SCREEN=OFF in CONFIG.FPW as Ed told me, no more flashing window before showing the modal form and everything is fine on opening the application.
>>
>>But there is still a flash on exit. It is not nice.
>>Is there any way to avoid that?