• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
initialization error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: [ANN] Developer for rent
  • Next by Date: Re: Newbie Questions
  • Previous by thread: Re: [ANN] Developer for rent
  • Next by thread: Re: problems with NSWorkspaceRecycleOperation
  • Index(es):
    • Date
    • Thread