Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP COM - How to kill a process
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00190686
Message ID:
00190747
Vues:
26
>I want to kill a VFP process from wOrd with Visual Basic.
>
>I receive a error when a call a method with the Quit Command.
>So I try to use a timer to kill the process but it seem's that the
>timer don't work's in a process ? Is this true ?

The Quit actually works as it should - the result isn't what you want though.
When you Quit a VFP server, you kill the object instance which in turn
causes the COM client to retrieve a COM exception (probably Not Enough
Storage is available).

You should *never* kill a COM object from within itself. The client is
responsible for the lifetime of the object.

Set oVFPObject = nothing

should do the trick.

A timer will work only if your COM object is a) an EXE server and b) has
a user interface.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform