> > Then, in my code, I simply join together the chunks into one > > contiguous piece of memory before I call DmCreateDatabaseFromImage(). > > But you can't normally allocate a contiguous piece of memory bigger than 64K > in the first place. (Well, yes there are feature pointers...)
well, on 3.5+ you can :) but anyhow *g* > > Can someone kindly point me in the right direction? > > Or if not, creative solutions are much welcomed. :) > > You can use Par (http://www.djw.org) to break up your over-64K prc into > multiple sub-64K prc's. Include each as a separate resource like you > already doing. Then at runtime, still extract each one using > DmCreateDatabaseFromImage. Finally move all the resources into a single > database via DmDetachResource and DmAttachResource. Finally delete the > now-empty temp databases, leaving the full one remaining. i have thought about something like this for a while - and, why are you using DmCreateDatabaseFromImage in the first place? :) it'll work if the resource is < 64k - but, the minute you go over = nasty. what i would do is rename code0001.bin --> _cde0001.bin the "new" code0001.bin would make a copy of itself, (create new, go through all resources, create and copy). with the exception of code0001.bin which, it would use _cde0001.bin you could do the same with the icons etc.. but, surely, this will give you some ideas :) pretty easy stuff to write. --- Aaron Ardiri CEO - CTO Mobile Wizardry http://www.mobilewizardry.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
