initialization error
initialization error
- Subject: initialization error
- From: email@hidden
- Date: Mon, 20 May 2002 11:55:47 -0700
I'm getting the following error :
Unable to determine target of Objective-C method call (ignoring):
Error accessing memory address 0x3: Invalid argument.
whenever I try one of the following calls:
int fd = open("tmp", O_RDONLY);
file = [[NSFileHandle alloc] initWithFileDescriptor: fd closeOnDealloc: true]; // fails
file = [NSFileHandle fileHandleForReadingAtPath: filename]; // fails
tmp = [[NSString alloc] initWithCString: cstr]; // fails
however, i'm able to get around the last error by doing this:
tmp = [NSString stringWithCString: cstr];
which works.
Any idea on what I'm doing wrong? Thanks for any info,
--prashanth
_______________________________________________
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.