I have a table in my app.  The way i am using the table, once the user
selects a table item, they then have to click a button to edit the record,
delete it, etc.  The table and buttons work fine.  But, if the user double
clicks the table selection, (selects it twice without clicking anything
else) two things happen.  1) For any record besides the first, the cell is
redrawn with some new value.  2) I get an error about MemoryMgr.c causing a
NULL handle error.
The only reason i can come up with for the NULL handle error is that the
handle is locked, and then locked again without being unlocked.
I have the following two lines of code where the error appears to come from.
I have a breakpoint set at precord =, and can see that hrecord has a value,
except when it is double clicked.  Then the value is 0x00000000, which
causes the error since it then tries to lock the memory at that location,
and none exists.  Is there anyway around this?
 hrecord = DmQueryRecord( sonomaDB, record );
 precord = MemHandleLock( hrecord );

Thanks,
Andrew



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