Lynn Allan wrote: > > The above fails because DmWrite must be used to actually put > contents into ftrMemP;
Right. Try using MemGluePtrNew instead to allocate large amounts of memory that you can write to via normal means. (I still wouldn't recommend allocating 4 MB in one chunk, though.) Alternatively, if you really want to use Feature memory, you can allocate a temporary buffer via normal means (MemPtrNew), read into that, then write it out with DmWrite, repeating until you've processed all the bytes. > Also, I'm unclear about the purpose of the featureNum parameter > to the Ftr calls. The sample code I found seemed to use an > arbitrary number (like the 1234 above). Is there an appropriate > number to use for FtrPtrNew? It's an arbitrary number that you specify. Features are globally accessible, and they're keyed by your application's creator ID and by the feature number. - James -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
