malloc has some limits on the size of a block that it can allocate, although Apple does not provide much information on any such limits. I did find the following at <http://developer.apple.com/technotes/ tn2002/tn2053.html>.
The maximum limit for malloc was too small. This has been increased to a limit of 2.5 GB for the text, data, and heap and the default stack can be up to 509 MB (r. 2848946). (r. 2848945). Charles Yeomans On Apr 21, 2007, at 11:09 AM, Peter K. Stys wrote: > A word of caution tho: I used malloc because I needed >1GB pointers, > which resulted in random crashes that took me many months to track > down. I went back to NewMemoryblock (and used arrays of <=1GB pointer > instead) and the crashes disappeared. I never figured out why, but it > was a statistical process of elimination that was extremely painful. > > My lesson: don't use anything but NewMemoryblock in the RB app (using > malloc and vec_malloc in plugins is fine). > _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
