Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP COM - How to kill a process
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00190686
Message ID:
00190820
Views:
28
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform