-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I took it out of the sample code. You could be right, but I'm not enough of a C expert to take chances.
Bill - -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Graham Sent: Monday, March 22, 2004 4:53 PM To: Palm Developer Forum Subject: Re: DmQuickSort and DataMgr.c Line 5342 error Rinko-Gay, William wrote: > I am trying to use DmQuickSort to sort a database. > > When I execute the code that calls the DmQuickSort I get an error: > > <code> called SysFatalAlert with the message: > "DataMgr.c, Line 5342, Err insertion sort". > > Converting to DmInsertionSort did not change this behavior. > > Here is a brief snippit of code that makes the call: > > ... > if (sortButtonSel != SORT_CANCEL) > { > DmInsertionSort(PTDB, (DmComparF *)ComparePTDBRecords, > sortButtonSel); What's the (DmComparF *) cast for? If the function is defined right, it shouldn't need a cast I don't think. - -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3 iQA/AwUBQF9hLIhyYWfDXDXQEQJ03wCgvDct4CS2Nx+MGVIse++5yi+04oUAoKmV MFLiSIEhalRVxO/dOSCc2+ES =dAT8 -----END PGP SIGNATURE----- *********************************************************************** This message is intended only for the use of the intended recipient and may contain information that is PRIVILEGED and/or CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any use, dissemination, disclosure or copying of this communication is strictly prohibited. If you have received this communication in error, please destroy all copies of this message and its attachments and notify us immediately. *********************************************************************** -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
