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

Re: Strange problem about connection got lost


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

Hi,

I just tried to reset the simulator by choosing "reset content and setting" from menu.
However, if I don't set a breakpoint to my program, the program still exits without any
message.

On Mon, Dec 27, 2010 at 6:14 PM, Remco Poelstra <email@hidden> wrote:
Hi,

Have you tried resetting the simulator?
The update process is not bug-free, I found it sometimes solves some strange bugs.

Regards,

Remco Poelstra

Op 27-12-2010 11:08, ico schreef:
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:
<http://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html#//apple_ref/occ/clm/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:
<http://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/Reference/Reference.html#//apple_ref/occ/clm/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




--
==========================
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: ico <email@hidden>
References: 
 >Strange problem about connection got lost (From: ico <email@hidden>)
 >Re: Strange problem about connection got lost (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Re: Strange problem about connection got lost
  • Next by Date: Re: Strange problem about connection got lost
  • Previous by thread: Re: Strange problem about connection got lost
  • Next by thread: Re: Strange problem about connection got lost
  • Index(es):
    • Date
    • Thread