>>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 ---
Tks for your reply Rick.
But I try to kill a COM object within itself because the
Set oVFPObject = nothing doens't kill the process on my system.
VFP EXE Server and MS Word 97 as client ( NT 4 WorkStation )
Marcel
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement