Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program exe not running on customer server
Message
 
 
To
06/04/2018 05:07:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01659182
Message ID:
01659186
Views:
59
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   && if its an executable vfp file
>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")      &&for test..to cut
>	oForm.show()
>else
>messagebox("Pass:object non created....cancelling")     &&for test...to cut
>return .f.   && cancel exe (quit)---important
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform