Spinning beach ball of death
Spinning beach ball of death
- Subject: Spinning beach ball of death
- From: Ken Tozier <email@hidden>
- Date: Sun, 23 May 2004 00:19:28 -0400
I wrote a custom array class (sort of a fusion between NSArray and
NSMutableArray with a few other bells and whistles thrown in) and have
run up against a really weird error when using the class inside a
method that displays a window.
I've isolated the problem to one line of code that does nothing more
than increment an integer. When I comment out the increment line, no
beachball of death. Uncommented, after a few seconds of the window
being on the screen, the beach ball appears and that's all she wrote.
Anyone have any ideas why incrementing an integer would bring
everything to a screeching halt?
Here's the relevant method
// in the @interface file, usedCount is declared like so:
int usedCount;
- (void) addObject:(id) inObject
{
[self grow: 1];
*(objRefs + usedCount) = [inObject retain];
usedCount = usedCount + 1;
// if I uncomment the next line, beachball of death
//usedCount += 1;
}
Thanks,
Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.