Crash when deleting records with DeleteAllRecords

Dave Addey listmail1 at dsl.pipex.com
Tue Jan 3 09:48:25 CST 2006


Hi all,

I¹m getting a crash ­ sometimes, not always, but consistent enough to be a
real problem ­ when using DeleteAllRecords.  Important lines from the crash
log shown below:

Thread 0 Crashed:
0   Kernel_Carbon_Final.shlb           0x05e5b42c
CopyTo__Q23fbl11CachePtr<c>CFPcUl + 124
1   Kernel_Carbon_Final.shlb           0x05e5b33c
ReadString__Q23fbl20VarCharPage_T<Us,Us>CFUlPcUl + 96
2   Kernel_Carbon_Final.shlb           0x05e55424
ReadRecord__Q23fbl11VarCharFileCFUlPcUl + 92
3   Kernel_Carbon_Final.shlb           0x05e55348
DoReadValue__Q23fbl8VVarCharCFUlPQ23fbl12Value_string + 208
4   Kernel_Carbon_Final.shlb           0x05e5520c
ReadValue__Q23fbl8VVarCharCFUlQ23fbl25smart_ptr<Q23fbl7I_Value> + 872
5   Kernel_Carbon_Final.shlb           0x05e54e34
ReadValue__Q23fbl8VVarCharFUl + 76
6   Kernel_Carbon_Final.shlb           0x05c5d380
ReadRecord__Q23fbl15Record_SeparateFv + 420
7   Kernel_Carbon_Final.shlb           0x05c5ec68 ReadRecord__Q23fbl5TableFv
+ 28
8   Kernel_Carbon_Final.shlb           0x05c0ac30 put_RecID__Q23fbl5TableFUl
+ 124
9   Kernel_Carbon_Final.shlb           0x05c4f408
DoDeleteRecordFast__Q23fbl5TableFUl + 44
10  Kernel_Carbon_Final.shlb           0x05c4f158
DeleteAllRecordsFast__Q23fbl5TableFQ23fbl24smart_ptr<Q23fbl6BitSet> + 556
11  Kernel_Carbon_Final.shlb           0x05c4ed84
DeleteAllRecords__Q23fbl5TableFQ23fbl21smart_ptr<Q23fbl3Set> + 444
12  Plugin                             0x023a2970
Table_DeleteAllRecords__FP16REALobjectStructP16REALobjectStruct + 416
13  DJ-1800 3.0b5.debug                0x003ae8bc
VTable.DeleteAllRecords%%o<VTable>o<VSet> + 96
14  DJ-1800 3.0b5.debug                0x00212600
DJDatabase.DeleteAllRecords%%o<DJDatabase> + 252

I am attempting to delete everything from three tables:

vPlaylistTracks.DeleteAllRecords
vTracks.DeleteAllRecords
vPlaylists.DeleteAllRecords

It seems that is is the second table (vTracks) which is causing the problem.

If it adds anything, I have two vLinks (foreign key links) between the three
tables:

vPT_PlaylistUniqueIDLink = CreateForeignKeyLink("PT_PlaylistUniqueIDLink",
vPlaylists.UniqueID, vPlaylistTracks.PlaylistUniqueIDPtr,
EVOnDelete.kSetNull, EVOnUpdate.kSetNull, false)
vPT_TrackUniqueIDLink = CreateForeignKeyLink("PT_TrackUniqueIDLink",
vTracks.UniqueID, vPlaylistTracks.TrackUniqueIDPtr, EVOnDelete.kSetNull,
EVOnUpdate.kSetNull, false)

I¹m not doing anything to these links before calling DeleteAllRecords
Should I be dropping the links first somehow?

RB 2005r4 Mach-O build, Valentina 2.0.5 Carbon, Mac OS 10.4.3.


More information about the Valentina mailing list