Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why on shutdown program is not called?
Message
From
03/08/2010 11:34:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01474941
Message ID:
01474979
Views:
32
>>Of course it is never displayed - you need a CLEAR EVENTS for the program to continue after the READ EVENTS
>
>I put this code
>
>
>IF llStartApp
>  DECLARE INTEGER GetLastError IN kernel32
>  DECLARE INTEGER CloseHandle  IN kernel32 INTEGER hObject
>  DECLARE INTEGER CreateMutex  IN kernel32 INTEGER lpMutexAttributes, INTEGER lInitialOwner, STRING lpName
>  IF VARTYPE(oAppObj.oMutex.NAME) = "C"
>    MESSAGEBOX('Starting')
>    DO set_time WITH prefs.set_time, prefs.nosay_time
>    DO SomeManager_menu.mpr
>   ** put a bunch of messageboxes here as well
>  ...
>
>
>The application is started OK, but I see 0 messageboxes. Which probably means this code is never executed and I need to find out where exactly the startup code of the application is.
>
>UPDATE. I think I know where the problem also may lie. I call in the command window do Something with param. I think it's calling the exe rather than main program.


> I think it's calling the exe rather than main program

I'd be surprised
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform