VFP help for ComReturnError() says:
COMRETURNERROR( ) Function
Executing COMRETURNERROR( ) places the specified text in the COM exception structure, aborts executing the current method, and returns control to the client. The Automation server remains in memory and the client can call more Automation server methods.
I am confused about what "aborts executing the current method, and returns control to the client" means.
My web service is a COM server. Let's call it "ITFBO". It calls other COM servers.
So a hit to the "server" comes in.
The appropriate endpoint is executed. An endpoint is just a method. Let's say the endpoint is "GetBalance()".
The endpoint method calls a method in a different COM server to actually do what is necessary to get the balance. Let's call this COM server "VFEITFBO". The method that gets called is "VFEGetBalance()".
VFEITFBO has an on error method.
If any error occurs, ComReturnError gets executed.
So, an error occurs while executing VFEITFBO's VFEGetBalance method. The ONERROR method is called and ComReturnError gets executed.
Can you tell me exectly what happens? Where does code exection resume? Does VFEITFBO continue to run?
Thanks,
John
COMRETURNERROR( ) Function
Executing COMRETURNERROR( ) places the specified text in the COM exception structure, aborts executing the current method, and returns control to the client. The Automation server remains in memory and the client can call more Automation server methods.
I am confused about what "aborts executing the current method, and returns control to the client" means.
My web service is a COM server. Let's call it "ITFBO". It calls other COM servers.
So a hit to the "server" comes in.
The appropriate endpoint is executed. An endpoint is just a method. Let's say the endpoint is "GetBalance()".
The endpoint method calls a method in a different COM server to actually do what is necessary to get the balance. Let's call this COM server "VFEITFBO". The method that gets called is "VFEGetBalance()".
VFEITFBO has an on error method.
If any error occurs, ComReturnError gets executed.
So, an error occurs while executing VFEITFBO's VFEGetBalance method. The ONERROR method is called and ComReturnError gets executed.
Can you tell me exectly what happens? Where does code exection resume? Does VFEITFBO continue to run?
Thanks,
John