LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CA_GetAutomationErrorString doesn't return the user define exception message

Hi,
I have a CVI DLL that calls a COM server (made with Delphi 6). That COM server is wrap as an ActiveX automation controler in CVI. When that server generate an error it raise an exception with a message in it. In CVI I can catch the exception but when I do a CA_GetAutomationErrorString it just return "Exception occured." for the error message, not the custom message from the server. If I do the same call from LabVIEW for example (LabVIEW VI do a call to COM server) when an exception occurs I can see the exact error message that was generated by the server.

Is this a normal behavior in CVI that you can't get the real error message or should I use another function to get it. I have look in
the activeX library and I couldn't find anything else than CA_GetAutomationErrorString.

Thanks in advance,
Gilles
0 Kudos
Message 1 of 2
(2,602 Views)
duplicate post here

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,602 Views)