"[ a | x ] - Peter Alex" a �crit : > There is an article on kb.palmsource.com 'keyword' > memglueptrnew which discuss about large memory chunk > allocation (to use memglueptrnew, bmpcreate or > ftrptrnew). > > i hope it can help
Not much, alas. None of these calls allocate movable chunks, which remains the problem if further resizes are to take place. The only workaround I see: allocate nonmovable chunks, and when resizing is needed, create a new bigger chunk, copy the old chunk into the new chunk and drop the old chunk. But that requires twice the heap space, and that sounds like a perfect recipe to fragment memory. -- Luc Le Blanc > --- Luc Le Blanc <[EMAIL PROTECTED]> wrote: > > My application needs to store various computation > > results into memory > > chunks. Since these chunks need to grow over time in > > the course of the > > application, I allocate them as movable using > > MemHandleNew to prevent > > that one chunk blocks another when attempting a > > resize. Alas, > > MemHandleNew seems to be limited to 64Kb (I get a > > NULL beyond that), > > unlike a new API like MemGluePtrNew that seems to be > > limited only by the > > device heap space. Is there a way to allocate a > > movable chunk > 64Kb? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
