Ok, so i have this call....

TblSetCustomDrawProcedure (tableP, 0,
MainViewDrawRecord);

and evry time i compile i get the following warning,
which i'd like to get rid of as i'm also getting a bus
error fatal alert when i run the application..

static void MainViewDrawRecord(MemPtr tableP, UInt16
row, UInt16 column, RectanglePtr bounds)  {

        MemHandle               recHandle;
        Char*                   recText;
        UInt16          recNum = 0;
        

        // record number that corresponds to table
        // item to draw.
        recNum = TblGetItemInt (tableP, row, column);

        // Retrieve record from database &lock it down
        recHandle = DmGetRecord(tctDB, recNum);
        recText = MemHandleLock(recHandle);

        // Draw the record
        MainViewDrawRecordInBounds(recText, bounds);
        
        // Unlock the handle to the record.
        MemHandleUnlock(recHandle);
        
        // Release the record, not dirty.
        DmReleaseRecord(tctDB, recNum, false);
} 

anyone know what the problem is here...?

Cheers


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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