<[EMAIL PROTECTED]> wrote:
>I have some code that seems to run fine on everything except a Palm
>Professional:
>
>static void table_draw_cell(VoidPtr table, Word row, Word column,
>RectanglePtr bounds) {
> VoidHand recordH;
>
> recordH = DmQueryRecord(MyDB, (UInt) TblGetRowID(table, row));
>
> ...
> }
...
>On the Emulator, I get that my application "has just read directly from an
>unallocated chunk of memory" when it tries to execute the DmQueryRecord.
...
>Anybody have any ideas why this would work fine on a PalmIII but not on a
>PalmProfessional? Thanks in advance,
I previously ran into something like this.
Earlier I had used DmGetRecord to load an editable table item and freed
the handle when I was done. The problem turned out to be that I failed to
call DmReleaseRecord to take care of the busy and dirty bits..
-- Lee
Lee Leonard
Tempest Productions
www.tempestprod.com