Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Handling
Message
From
08/12/2000 21:17:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Error Handling
Miscellaneous
Thread ID:
00451077
Message ID:
00451077
Views:
69
I need some help with an error handling question.  
Here's the situation.  I've created a COM object that will 
be accessed over a LAN.  Basically it performs a query and 
returns the results to a VB client in an XML stream.  

Everything _normally_ works just fine, but on occaision 
(normally just after I add "one more thing that shouldn't 
affect anything else") I get a runtime error.  The problem 
with this is that the client program just hangs when this 
occurs and I have to kill the COM process.

Ideally I'd like the COM object to collect the information 
about the runtime envioronment as well as the error and 
return it to the client in the XML stream.  The problem is 
I can't figure out how get the Error() method to terminate 
the offending method and return a value to the client.

Failing being able to do the above, I'm thinking of just 
logging the error to a text file and CANCELing the server.  
This will, of course, likely crash the client, but I 
can't think of any other way of handling this.

Can someone offer a better solution?


advTHANKSance

	...kt
Next
Reply
Map
View

Click here to load this message in the networking platform