General information
Category:
COM/DCOM and OLE Automation
>Actually you can use ComReturnError() to relay the XML error information back to a COM client. This function was added specifically for improved COM support on errors and is certainly appropriate in this situation.
Hmmm, I woudln't recommend that though. If some COM object did that in my apps, I'd have no idea what do with it. Its all up to the client, and thats why there's the standard error structure.
Though, being able to return TRAPPED (expected) errors safely from a COM object's method is not a bad idea, I do it often.
>Although the help files do not specify if there is a limit to the amount of info you can pass back through it.
I've seen wild things doing that. In VFP7 I got alot of C5 errors, in VFP6 things like "?" would stop working from the command window. Kindof wierd.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only