Fatal crash in NSTabStop?
Fatal crash in NSTabStop?
- Subject: Fatal crash in NSTabStop?
- From: John Timmer <email@hidden>
- Date: Wed, 17 Oct 2001 14:41:36 -0400
I'm trying to set up some tab stops so I can format some text. To do this,
I'm creating an array using the following code:
NSTextTab tempTab = new NSTextTab(NSTextTab.LeftTabStopType, base);
NSMutableArray tempArray = new NSMutableArray( tempTab);
for (loopCounter = 1; loopCounter < 15; loopCounter++ ) {
base= base + increment;
tempTab = new NSTextTab(NSTextTab.LeftTabStopType, base);
tempArray.addObject(tempTab);
}
return tempArray;
After it runs through the loop about 10 times, the debug session tanks with
the following messages:
Strain Brain[4305] jobjc_mapObjects() collision, objc object 1102c90 of type
(NSTextTab) being entered for Java object of class
(com/apple/cocoa/application/NSTextTab) in entry 39b16d0
2001-10-17 14:37:37.272 Strain Brain[4305] existing java object's class is
(com/apple/cocoa/application/NSTextTab)
2001-10-17 14:37:37.272 Strain Brain[4305] no corresponding java entry! (did
it get collected?)
ObjCJava FATAL:
jobjc_mapObjects(): mapping inconsistency -- hashtable entries are not
identical
ObjCJava Exit