• 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
Strange problem about connection got lost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange problem about connection got lost


  • Subject: Strange problem about connection got lost
  • From: ico <email@hidden>
  • Date: Mon, 27 Dec 2010 18:08:48 +0800

Hi All,

I am writing an iPhone app which will call a webservice method by using soap message format.
I need a synchronous process because table view needs those data before it can be displayed.
So I use [NSURLConnection sendSynchronousRequest:returningResponse:error:]

The problem is, the whole program will exit without any error message after the method call.
Even I put a NSLog statement just after the 
[NSURLConnection sendSynchronousRequest:returningResponse:error:],
there is no any output so I am sure the program exit during that method call. Actually during
that HTTP request and response stuff.

However, if I set a breakpoint before that method call, and run the program in debug mode, 
everything runs well, the program will not exit, and I got my results as well.

Can anyone figure out what is going on?
Thanks.

--
==========================
Life isn't about finding yourself.
Life is about creating yourself.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Strange problem about connection got lost
      • From: Remco Poelstra <email@hidden>
  • Prev by Date: Requirements to support Jumbo frames
  • Next by Date: Re: Strange problem about connection got lost
  • Previous by thread: Requirements to support Jumbo frames
  • Next by thread: Re: Strange problem about connection got lost
  • Index(es):
    • Date
    • Thread