Feanor
2002.05.27, 10:40 AM
*** malloc[9869]: error for object 0x1d6d000: Incorrect check sum for freed object - object was probably modified after beeing freed; break at szone_error
What does that error really mean? I'm running a test on an Obj-C class which is meant to hold dynamically allocated arrays of floats (for verts and such). The error happens here:
- (IBAction)makeBox: (id)sender
{
aBox = [[BJGBoxGeometry alloc] init];
if( aBox ) {
[status setStringValue: @"a box has been created" ];
[sender setEnabled: NO];
[deleteButton setEnabled: YES];
[resizeButton setEnabled: YES];
}
The error doesn't happen if I use another object instead of BJGBoxGeometry (say, NSString or BJGGeometry, the direct superclass). ((Smilie problem fixed.))
b
What does that error really mean? I'm running a test on an Obj-C class which is meant to hold dynamically allocated arrays of floats (for verts and such). The error happens here:
- (IBAction)makeBox: (id)sender
{
aBox = [[BJGBoxGeometry alloc] init];
if( aBox ) {
[status setStringValue: @"a box has been created" ];
[sender setEnabled: NO];
[deleteButton setEnabled: YES];
[resizeButton setEnabled: YES];
}
The error doesn't happen if I use another object instead of BJGBoxGeometry (say, NSString or BJGGeometry, the direct superclass). ((Smilie problem fixed.))
b