• 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
works fine in GDB but that's it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

works fine in GDB but that's it


  • Subject: works fine in GDB but that's it
  • From: Aaron Tuller <email@hidden>
  • Date: Fri, 15 Mar 2002 00:43:00 -0800

So i have a very simple command line tool that uses OmniNetworking to do some very simple HTTP things and when I step through my code in Project Builder in debug mode, it works great. However when i just run the tool from within Project Builder or from the command line nothing happens. For example I have this:

while ([socket isReadable])
{
t2 = [socket readString];
if (t2 != nil)
{
[theResponse appendString:t2];
}
}
NSLog(theResponse);


when i step through it, not modifying anything, the NSLog shows what i expect, when I just run it, I get a blank NSLog entry. What could be the problem here? I did an NSLog of the socket right before i read from it and it shows it as connected but I can't try debugging it in the debugger cause then it just works.

Thanks for the help.

-aaron
_______________________________________________
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: Command + Delete Key Equivalent
  • Next by Date: Mouse moved events and escape key
  • Previous by thread: Re: Command + Delete Key Equivalent
  • Next by thread: Mouse moved events and escape key
  • Index(es):
    • Date
    • Thread