Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Application exits but process stays alive
Message
De
11/06/2004 17:02:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
11/06/2004 13:34:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00912489
Message ID:
00912926
Vues:
12
>I did some more tests. If the form is a top level form, it works fine, whether screen=off or screen = on, its just that if screen = off, the main foxpro window doesn't show. But, if it's not a top level form (which is what was the case when I first posted, and where I was having the problem), then, the application never shows. Actually, if you issue wait windows, or other commands, they execute, and the application starts, and comes up under applications in the task manager, but, it seems, other commands (such as read events, or menuing commands?) cause the application to exit but remain alive as a process. In this case, if you look in task manager, you will see the exe under processes, but not under applications. Other tests of even simpler code confirmed that you are right, vfp is waiting on the read events, it's just that the 'application' is gone, but the process is alive.
>Actually, when I originally was having this problem, I didn't even have a form at all, all I had was a call to a simple menu file, and read events, which also didn't work. Once I issued screen=OFF, this program worked as well.
>
>I'm not sure I did a good job of explaining my problem in the original post. Hopefully this is more clear. Thanks again for your help. Actually I had never used top level forms before. So I think I understand these behaviors better now. It seems that issuing screen=off and not having a top level form will cause this behavior.

The one difference between what will show as Application in TaskMAnager and what will not is whether it has a window with desktop=.t. property, which _screen has by default, and your forms (again by default) don't. So if you hide _screen but show your form, it's not guaranteed that your app will show in Applications. Your exe is executing nonetheless, and it will appear in Processes.

If your app has two Desktop forms, it will show as two Applications in task manager. This is so Microsoft, to have confusing and misleading names for things... so: "Application" actually means "A desktop window", "Process" means "any running executable", "security" actually means... oops, that one doesn't belong here.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform