There is a problem with all the -initWithArray: and related methods.
eg -initWithArray:
It looks like that:
- (id) initWithArray: (NSArray*)array
{
unsigned c = [array count];
id objects[c];[array getObjects: objects]; self = [self initWithObjects: objects count: c]; return self; }
with
id objects[c];
gcc allocates space on the stack for c elements using alloca().
On windows stacksize is limited. So at present when calling initWithArray
with an array containing more then ~52100 elements stack runs out of space
and applications crashes (or behaves really silly, depending what gets overwritten)
The solution here to fix this would be to replace all that dynamic array stuff
with malloc()/free() calls.
Attached with this email you will find a patch to current NSArray.m for fixing
all these problems in NSArray.
Roland
NSArray.patch.gz
Description: GNU Zip compressed data
_______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
