Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Handling
Message
De
08/12/2000 21:17:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error Handling
Divers
Thread ID:
00451077
Message ID:
00451077
Vues:
71
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform