Oh , dear me!

You refer to h2 as the third parameter in DmWrite !

Sorry ! Sorry !....

M.



-----Original Message-----
From: Max Bian [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 12 December 2001 13:47
To: Palm Developer Forum
Subject: RE: Saving Form Results to a DB (DmWrite Bus Error)


Michael,

What are you talking about?  I guess you didn't follow the thread right. :)

Max
--- Michael Glickman <[EMAIL PROTECTED]> wrote:
> Sorry, Max
> I don't see any problem with MemHandleSize: it really expects a handle.
> DmWrite wants a pointer and it gets is!
> 
> But here migh be another one:
>       PackReminder( &r,  h2 ); // PackReminder will resize the handle 
> 
> How you pass h2 ? Do you pas it by reference or by value ?
> In the latter case you might not get it right after internal resize.
> 
> M.
> 
> 
> 
> -----Original Message-----
> From: Max Bian [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 12 December 2001 13:07
> To: Palm Developer Forum
> Subject: Re: Saving Form Results to a DB (DmWrite Bus Error)
> 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/
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
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/

-- 
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