-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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);
...

My dmOpenRef, PTDB, points to an open database.

Here is the declaration for ComparePTDBRecords

static Int16 ComparePTDBRecords(char *rec1, char *rec2, Int16 other, 
  SortRecordInfoPtr rec1SortInfo, SortRecordInfoPtr rec2SortInfo,
MemHandle appInfoH)

I do not believe my ComparePTDBRecords function is called, because I
set a breakpoint on its first line and the message occurred before
the debugger hit the break point.

Can anyone help me understand what is causing this error?

TIA,
Bill
*******************************************************************
*
* The opinions expressed in the above message are my own, and do not
* reflect the opinions of my employer.
*
*******************************************************************

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQF9eIohyYWfDXDXQEQJJtQCcC/X0CI+3zfyynPGBpkkpX1LwKH0An1b3
CRwSXbxEunO0opDwrkDbWT3D
=EN6C
-----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/

Reply via email to