Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: large memory malloc



Mark,

thanks!


i have a simple xcode project that does a malloc that for the latest data set has grown to just under 3gb.  the malloc is failing (on 10.3.9).  since i have 4gb of ram and the docs imply i can access up to 4gb space without having to go to 64 bit addressing, i was hoping there was something simple i could do to make this work?


There probably isn't anything simple you can do to solve the problem without reworking your code, at least a little. While your process has a 4GB address space, there is bound to be some fragmentation of the available space, so the largest block you can allocate will always be somewhat smaller.


its a simple command line app that merges a set of images of irregular size, which may overlap (i want to keep the last ones).  its a quick and dirty tool for some gis work i am doing.  i can mod to do in smaller pieces, i just was hoping there was a quicker way.   


thanks jim

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >large memory malloc (From: "James E. Hopper" <email@hidden>)
 >Re: large memory malloc (From: Mark Bessey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.