Alan Kennington wrote:
> Why do I get a soft reset and nasty messages when I
> call DmInsertionSort() after calling DmDeleteRecord() or
> DmRemoveRecord()?
Can you specify the messages? (Generic bus error on POSE?) And check
the stack trace at the crash, to see if it's crashing in your comparison
callback or somewhere in the OS.
Also try this: does the crash still happen if you change DmInsertionSort
to DmQuickSort?
> the documentation gives me the impression that
> the reference returned by DmOpenDatabase() is analogous
> to the Unix FILE* pointer, so that it should not move around
That's correct. A DmOpenRef stays valid until you close the db.
> The really strange thing is that if I call FrmCustomAlert()
> in between deleting a record and sorting the database,
> the problem goes away! I don't see the connection here.
That is strange. FrmCustomAlert could cause a compaction of the dynamic
heap, but that shouldn't make any difference.
-slj-