Ok, I've search everywhere! And I see no reason of that error!
I'm using a NSDirectoryEnumerator to add all the content of a folder
to some array... I'm filtering these files (I don't want certains
types of files). One of these file types is symbolic link (alias). So
I'm using NSFileWrapper to check that with -(BOOL) isRegularFile.
After that I'm including these array to an custom object.
The problem is : when I include the FileWrapper code, it does not
work. It gives me this error :
RFM(52227,0xa0182720) malloc: *** mmap(size=28672) failed (error
code=12)
RFM(52227,0xa0182720) malloc: *** error: can't allocate region
RFM(52227,0xa0182720) malloc: *** set a breakpoint in
malloc_error_break to debug
If I do not include the code, it works like this part of the code... :
//if([[[NSFileWrapper alloc] initWithPath:path]
isRegularFile]) {
//Don't want nib resources and add it to the
dictionnary
if ([fileType isEqualToString:@"nib"]) {
[resourcesArray
addObject:[pathResourcesName lastPathComponent]];
[fullPathsArray
addObject:pathResourcesName];
[resourcesNum skipDescendents];
}
//Nor these types of files
else if (([fileType isEqualToString:@"t2t"]) ||
([fileType
isEqualToString:@"html"]) ||
([fileType
isEqualToString:@"helpindex"]) ||
([fileType
isEqualToString:@"css"]) ||
([fileType
isEqualToString:@"mpkg"]) ||
([fileType
isEqualToString:@"pkg"]) ||
([fileType
isEqualToString:@"strings"]) ||
([fileType
isEqualToString:@"plist"]) ||
([fileType
isEqualToString:@"txt"]) ||
([fileType
isEqualToString:@"app"]))
[resourcesNum skipDescendents];
else if (([fileType isEqualToString:@""]) ||
([fileType
isEqualToString:@"lproj"]));
else {
[resourcesArray
addObject:[pathResourcesName lastPathComponent]];
[fullPathsArray
addObject:pathResourcesName];
}
//}
Any help appreciated!
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com