hi all,


i having a problem on database sorting. I was applied this function to do 
sorting,

DmInsertionSort(dbP, (DmComparF *) &CompareRecords,sortOrder);

static Int CompareRecords (RecordPtr r1, RecordPtr r2,
Int sortOrder, SortRecordInfoPtr info1, SortRecordInfoPtr info2,
VoidHand appInfoH)
{
   Int result;
   result = StrCompare(r1->name, r2->name);
   return result;
}


But i got Bus error. I noticed that r1 and r2 pointing to null record.
Is it because i did not tell the system where are the r1 and r2.

Do i have to pass in pointers to r1 and r2?  How to do so? Where should i 
define r1 and r2?

rgds,
ailee

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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