|
Thanks, you the best. -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Barbara Morris Sent: Monday, September 26, 2005 6:38 PM To: midrange-l@xxxxxxxxxxxx Subject: Re: Calling export procedure using QZRUCLSP - Problem with parmpass byValue <clip> The x'00' is the error-code parameter. It's only one byte long, but it should be at least 4 bytes long (technically it should be at least 8 bytes long, but I think that if the first 4 bytes are x'00000000' that the APIs don't use anything further). If you pass x'00' as a parameter, the API will see the value x'00404040' (4210752) as the bytes-provided field of the error-code parameter (because CL will pad the value with blanks to make a 32-byte value). The API will feel free to modify up to 4210752 bytes of the error code parameter. The first 32 bytes will be ok, since CL would have allocated that much for your parameter, but if it modifies anything beyond 32 bytes, you could get unpredictable results due to storage corruption. </clip>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.