 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roman Sanchez Guest
|
Posted: Wed Oct 22, 2003 10:12 pm Post subject: Ole exceptions |
|
|
I am working with some Novell Ndap ActiveX controls and I want to be able to
trap exceptions raised by some methods and handling them according to the
error code. The problem is that this error code does not comes as part of
the exception object.
By tracing down the exception I noticed that the ole exception is raised by
the DispCallError procedure in the ComObj unit. This procedure carries an
ExcepInfo record parameter which has, among others, two fields:
wCode and sCode
According to the documentation in the Delphi help file either one of these,
but not both, should have the error code. By inspecting ExcepInfo at
run-time I notice that he correct error code (according to Novell
documentation) is carried in the wCode field. However, the DispCallError
procedure does not use this field at all but always use sCode which happens
to be equal to cero.
As a result, the exception object never gives out the correct error code.
Is there any work-around to this issue so that I can get the proper error
code?
Thanks
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|