Thank you, Yousfi. I will add the code to my program, as you suggest.
>your exe runs on server with vfp runtime installed.
>you must add the "on shutdown" event in top of your main code.
>in principe the stereotype must be like below (to test on exe on server,place some messagebox for blocking process and give you a feedback where is the error ):
>
>
>if !_vfp.startmode=0
>on shutdown quit
>endi
>
>public oForm
> oForm = NEWOBJECT('error_log_form','viewerrorlog.vcx')
>IF TYPE('oForm') = 'O' .and. !ISNULL( oForm )
>messagebox("Pass:object created ok")
> oForm.show()
>else
>messagebox("Pass:object non created....cancelling")
>return .f.
>endi
>
>READ EVENTS
>
>*............
>
>*in your main form
>
>procedure destroy
>clea events
>endproc
>
>enddefine
>
>
>*verify also your main form is with showWIndow=2 (if screen invisible).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham