This is rather basic programming error.  Look at the DmWrite function
prototype.  Does it require a MemHandle where h2 is?

If you use emulator you should be given hint on that.  Anyway, this type of
error (crashing on single function) is way too easy to debug.  I'd recommand
you bookmark the API reference site at Palmos.com to get easy reference on
those.

Max
--- Sean McMains <[EMAIL PROTECTED]> wrote:

>       h2 = MemHandleNew( 1 ); // PackReminder will resize the handle 
> appropriately
>       PackReminder( &r,  h2 );
>       
>       // write the new packed record to the DB and release the record
>       size = MemHandleSize( h2 );
>       DmWrite( MemHandleLock( h ), 0, h2, size );



__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to