BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ole exceptions

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Usage
View previous topic :: View next topic  
Author Message
Roman Sanchez
Guest





PostPosted: Wed Oct 22, 2003 10:12 pm    Post subject: Ole exceptions Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Usage All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.