Hi Ivan, hi Matt,
thanks for your responses.

It seems it is an memory allocation problem. dmsg: Out Of Memory. Thanks for 
the hint  ;-)

My class:

@interface ValueRow : NSObject {
    int value[5000000];
}

- (int)  getValueForIndex:(int) index;
- (void) setValueForIndex:(int) index withValue:(int)inputValue;

@end

@implementation ValueRow

- (int) getValueForIndex:(int) index {
    return value[index];
}

- (void) setValueForIndex:(int)index withValue:(int)inputValue {
    value[index] = inputValue;
}

@end

It seems the command „ValueRow *valueRow = [[ValueRow alloc] init]“ needs on OS 
X much less memory as on GnuStep in Ubuntu.
If I allocate 1440 instances of valueRow and I fill it with the same amount of 
data (index 0 - 60750) the Mac App only needs 400 MByte but on Linux with 
GnuStep are 8GByte RAM not enough.

Best regards
Matthias Rudolph

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to