Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Handling
Message
De
08/12/2000 21:35:31
 
 
À
08/12/2000 21:17:37
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00451077
Message ID:
00451087
Vues:
17
>

>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.
>

Normal way is by using COMRETURNERROR to return relavant information from the error method. Then you let the client handle the COM error message.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform