|
I've got a MODS based on a pointer with OCCURS = 32767. I ALLOC & REALLOC memory to the pointer all during the program. At some point, I DEALLOC the pointer and it changes to a NULL pointer. If I then ALLOC to it again, the pointer takes on a valid address, but references to the MODS cause a space offset error (MCH0601) due to trying to operate outside of "an implicit process space for activation group-based heap storage". Is there a rule about not being able to reallocate memory to a pointer once it has been deallocated or am I just doing it wrong? The pointer itself looks like a valid address, but apparently the MODS is no longer based on it. Nelson Smith nsmith@lincare.com ncsmith@tampabay.rr.com ************************************************************************************************************************************************************************************************************ This message originates from Lincare Holdings Inc. It contains information which maybe confidential or privileged and is intended only for the individual or entity named above. It is prohibited for anyone else to disclose, copy, distribute or use the contents of this message. All personal messages express views solely of the sender, which are not to be attributed to Lincare Holdings Inc., and may not be copied or distributed without this disclaimer. If you received this message in error, please notify us immediately at MailAdmin@lincare.com or (800) 284-2006. ************************************************************************************************************************************************************************************************************
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.