Re: Question about tables

2008-05-28 Thread chongwm
I had the NULL handle problem with redrawing my table cells before. I'm using my own custom table drawing callback to draw my cells. The way I get data for the cell is to use recH=DmGetRecord(xxx, index), and after I'm done drawing, I did a MemHandleFree(recH). Which is wrong and BAD. Because the

RE: Question about tables

2000-08-25 Thread Martin Rubi
> One more question on the topic. I thought i read somewhere that when a Palm > app closes, Palm releases all its memory. So in that case, the chunk that > has been locked multiple times should be freed when the app closes. > Correct? Almost. When the app closes, the memory manager deallocate

Re: Question about tables

2000-08-25 Thread Andrew Lathrop
One more question on the topic. I thought i read somewhere that when a Palm app closes, Palm releases all its memory. So in that case, the chunk that has been locked multiple times should be freed when the app closes. Correct? Andrew Lathrop <[EMAIL PROTECTED]> wrote in message news:22338@palm-d

Re: Question about tables

2000-08-25 Thread Andrew Lathrop
Scratch that, reverse it. I get chunk overlocked errors. That is because i am never unlocking it, so it gets overselected. Andrew Lathrop <[EMAIL PROTECTED]> wrote in message news:22338@palm-dev-forum... > > If you don't mind my asking, did you get around it? If so, how? I tried > not unlockin

Re: Question about tables

2000-08-25 Thread Andrew Lathrop
If you don't mind my asking, did you get around it? If so, how? I tried not unlocking the record, and that would give me chunk underlocked errors if the record was selected multiple times. Thanks for the suggestions, Andrew <[EMAIL PROTECTED]> wrote in message news:22290@palm-dev-forum... > > I

Re: Question about tables

2000-08-24 Thread chongwm
I had the NULL handle problem with redrawing my table cells before. I'm using my own custom table drawing callback to draw my cells. The way I get data for the cell is to use recH=DmGetRecord(xxx, index), and after I'm done drawing, I did a MemHandleFree(recH). Which is wrong and BAD. Because th

Question about tables

2000-08-24 Thread Andrew Lathrop
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)