Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing an application
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01003603
Message ID:
01007271
Vues:
18
Alessio,

To debug your problem, I think you will have to know how your Main Exe is launching your second application. Since you said that you cannot call CLEAR EVENTS or do any shutdown routines, I assume you are doing something like:

DO MyApp2.app

Does your Main Exe also call READ EVENTS and/or DOEVENTS()?

I have written a few application launchers in FoxPro. To get around the problems you are having, I don't launch them this way. I actually use the Windows API function CREATEPROCESS to launch the executables so that they are completely in their own memory space. That way, you can call all of the cleanup commands that you want and the secondary apps will not interfere with the main app. This also protects your main app from errors or other problems that may occur in your second app.

Another option, which is not nearly as robust as these, is to use the RUN command to launch your second app in its own memory space.

Matthew J. Price
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform