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:
00190747
Views:
24
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform