• 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
recvfrom question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

recvfrom question


  • Subject: recvfrom question
  • From: John Draper <email@hidden>
  • Date: Sun, 01 May 2005 22:10:43 -0700

As I'm processing incoming data,   I'm running into this problem....
First,  I put breakpoint a -[NSException raise]

then eventually,  my application displays this in the console...

----- console output -----
Timed out fetching data. Variable display may be inaccurate.
Exception name: NSInvalidArgumentException, reason:*** -[NSCFArray addObject:]: attempt to insert nil
Parser (0x655e4b0)
parse buffer:
'2291^done,statics=[]
--------- cut here --------


What does this mean? Can someone translate this into something that might come close
to English...


The last function I executed before getting this error is:

bytesRead = recvfrom(EDSOCKETHANDLE, buffer, EDUDPSOCK_BUFFERSIZE, 0, (struct sockaddr *)remoteAddress, &remoteAddressLength);

when I attempt to get data from the socket.

WHAT is attempting to insert "nil" -  and what is a "parse buffer"?

Also - just before this appeared in the console - I get....

Program received signal:  "EXC_BAD_ACCESS".
[Switching to process 3714 thread 0xc847]
[Switching to process 3714 thread 0xc847]

What is this?

Does this mean I was in another thread when this exception occurred, and I was switched back
to the main thread.... my PID = 3714 - from the "ps -ax".


According to the Source debugger, I have 3 threads active... at the time of the break.
I can select thread 1, thread 2 or thread 5. But the Console references them as
thread 0xc847 - so how can I tell which thread caused the break? How can I relate the
thread address (0xc847) to a thread number?


And of course "what is adding the object to "NSCFArray"?

John


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: MEETING: Chicago - Tuesday, May 3rd
  • Next by Date: Re: Preferences file in Tiger
  • Previous by thread: MEETING: Chicago - Tuesday, May 3rd
  • Next by thread: auto completion feature in custom tableview
  • Index(es):
    • Date
    • Thread