Skip to main content

If I invoke OUTLOOK from within my NETEXPRESS program and something fails, if I am using the

001188     invoke exceptmgr "register" using oleExceptMgr

001189                                       osException.

……

005526 callback section.

005527 entry "onOleException" using by reference lnkErrorObject

005528                             by reference lnkErrorNumber

005529                             by reference lnkErrorText.

 

I receive a message "the Cobol Exception was: 0000065537

But I observed, that for all Exceptions where OUTLOOK failed, I receive the same Error: lnkErrorNumber = 65537

 

My errors where:

OUTLOOK not running,

bad format of the mail address.

and perhaps other.

 

Is there a way to know which kind of error made the OUTLOOK to abort?

Or is the error allways 65537 x”10001”

Thanks

Rolf

If I invoke OUTLOOK from within my NETEXPRESS program and something fails, if I am using the

001188     invoke exceptmgr "register" using oleExceptMgr

001189                                       osException.

……

005526 callback section.

005527 entry "onOleException" using by reference lnkErrorObject

005528                             by reference lnkErrorNumber

005529                             by reference lnkErrorText.

 

I receive a message "the Cobol Exception was: 0000065537

But I observed, that for all Exceptions where OUTLOOK failed, I receive the same Error: lnkErrorNumber = 65537

 

My errors where:

OUTLOOK not running,

bad format of the mail address.

and perhaps other.

 

Is there a way to know which kind of error made the OUTLOOK to abort?

Or is the error allways 65537 x”10001”

Thanks

Rolf

Please see the Net Express documentation here which provides an example of COM exception handling.

You might be able to get additional information by using the following call after the exception occurs:

invoke OLEsup "getLastSCode" returning lsErrorCode 

where:

lsErrorCode PIC X(4) COMP-5