|
This is the situation: The program fails with "CEE0810 - Message . . . . : The starting address for reallocation is not valid." on the reallocation of result.NullIndBase. The address value of result.NullIndBase is the same before and after the reallocation of resultBase. I have never had this problem with C, and I beleave I have done this before in RPG. I have not found a related PTF or APAR so I am not sure what to think. D result DS Based(resultBase) D Qualified D rows 10I 0 D rowLength 10I 0 D 4A D nullIndBase * D resultBase S * D resultSize S 10I 0 D nullIndSize S 10I 0 *** Initialization *** resultBase = %Alloc(resultSize) result.NullIndBase = %Alloc(nullIndSize) *** SQLCLI Processing *** resultBase = %ReAlloc(resultBase : resultSize) result.NullIndBase = %ReAlloc(result.NullIndBase : nullIndSize) Duane Christen NOTICE: This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
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.