I'm using an ActiveX object and by its instructions it has its own exception object. Now the problem I'm running into is that it seems Delphi is clearing the data out when it detects the exception so I can't use it.
A basic example:
Now Delphi will go into the except section for any exception the statement makes, which is okay to a point. But ICallResults includes a IWorkException member which seems to have some better information reporting, according to documentation, that I can get out of the EOleError object (best I can do is "The Hex error is 0x1234567").
While I could be misunderstanding the documentation about what exact information IWorkException returns, it seems Delphi isn't giving me a shot to try and access this object (ICallResults doesn't seem to return correct data) in order to see whether it will produce something more meaningful.
Any ideas?
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
A basic example:
Code:
try
ICallResults := IWorkMethod.DoSomeWork;
except
On E: EOleError do
...
end;
Now Delphi will go into the except section for any exception the statement makes, which is okay to a point. But ICallResults includes a IWorkException member which seems to have some better information reporting, according to documentation, that I can get out of the EOleError object (best I can do is "The Hex error is 0x1234567").
While I could be misunderstanding the documentation about what exact information IWorkException returns, it seems Delphi isn't giving me a shot to try and access this object (ICallResults doesn't seem to return correct data) in order to see whether it will produce something more meaningful.
Any ideas?
It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.