home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 263,342 of 264,096   
   Craig A. Berry to All   
   Re: cma$tis_errno_get_addr   
   16 Sep 25 06:31:55   
   
   From: craigberry@nospam.mac.com   
      
   On 9/15/25 9:56 PM, Arne Vajhøj wrote:   
   > On 9/15/2025 10:39 PM, Craig A. Berry wrote:   
      
   >> call CMA$TIS_VMSERRNO_GET_ADDR   
   >> !   
   >> ! The above returns an address   
   >> !   
   >> examine/condition    
   >   
   > Interesting.   
   >   
   > The value I see is indeed 65535.   
   >   
   > One question answered, but two new questions pop up.   
   >   
   > 1) How does the C++ library know that the main program   
   >     is Pascal and not C (for C I get a normal errno value)?   
   >   
   > 2) The address returned by CMA$TIS_VMSERRNO_GET_ADDR   
   >     point to another mysterious value not matching anything.   
      
   On #2, if there are any likely-looking message files, it's possible that   
   SET MESSAGE with the right one might get the condition value   
   translatable to a meaningful message.   
      
   On #1, remember that the value of errno doesn't mean anything except   
   immediately after the error, so if C is successful but Pascal is not,   
   the fact that you get different errno values doesn't really tell you   
   anything.  If there is an error from both languages, then it does sound   
   like something is different about the initialization of the image or the   
   debugger session.  Since the debugger does have language-specific   
   features, it may be a more likely suspect.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca