On Mon, 26 Aug 2002, Jeff Ishaq wrote: > Then, in my code, I simply join together the chunks into one contiguous > piece of memory before I call DmCreateDatabaseFromImage(). > > Is this possible? Can someone kindly point me in the right direction? > Or if not, creative solutions are much welcomed. :)
About the only way to go would be to break it up somehow, but your idea for reconstructing it isn't the best. As the database you're rebuilding grows, you start to run out of room to allocate a continuous block to store it in. A better way to go would be to use the Exchange Manager to create the database from the partitioned image (not sure offhand which function, and I don't have the reference in front of me right now, but I know there's one there for that). You could then, in the read callback function, read data from the pieces that you have stored, moving from one to the next as needed to read in the entire helper.prc database. ----------------------------------------------------------------------- Brian Smith // avalon73 at arthurian dot nu // http://www.arthurian.nu/ Software Developer // Gamer // Webmaster // System Administrator Friends don't let friends wear Speedos. Ever. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
