Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making the most of Multithreading
Message
 
To
04/12/2002 08:56:15
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00729042
Message ID:
00729736
Views:
15
>Hit this HARD with DCOM, is there ANY way to neatly and without memory leak close a COM object if it errors?

Sure. TerminateProcess() will kill it off completely... It will work if the object is hung or the Window Message Queue is stalled - it doesn't matter. However, it's not a clean solution necessarily as tables and other open resources can potentially be corrupted.

However, I find this to be the best way to control server components because if you are running VFP code it will ultimately crash on occasion and TerminateProcess() is about the only mechanism I know how you can go on after such a failure in COM objects. It won't work with MTDLLs and it won't work with COM+, but it will with plain old EXE COM/DCOM components.
+++ 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