Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why on shutdown program is not called?
Message
 
 
À
03/08/2010 09:27:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01474941
Message ID:
01474968
Vues:
63
>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform