×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.





The first statement within this procedure calls the procedure malloc to
allocate storage and to get a pointer on this storage.

After memset is used to initialize this storage.

It is a best practice to allocate the memory in the calling
program/function, not in the called. Allocation of memory within a called
function (or especially a called program) leads to this type of error.

My guess is that the program is exiting with *INLR on, or that the pointer
is not allocated as *STATIC, but that is just a symptom of a greater
(design) problem.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
Money is better than poverty, if only for financial reasons.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.