On Fri, 2003-02-28 at 20:12, Chris Antos wrote:
> You didn't say what is calling your comparison function.
>
> Is it DmQuickSort, or DmFindSortPosition?
>
> If it's the latter (and it probably is) then the problem is that you are
> responsible for passing a SortRecordInfoPtr to the DmFindSortPosition API,
> and you are probably passing NULL.
>
You know, I don't mind being stupid, but I really hate it when I look
stupid! :-)
My compare function was being called during a record update, so I was
thinking that it would be called with the pointer to the existing
record's info. I wrote my database add/update stuff some time ago, so I
forgot that DmFindSortPosition was called for both new records and
record changes.
Thanks for the response.
/dwight
--
Dwight Tovey <[EMAIL PROTECTED]>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/