Re: Strange problem about connection got lost
Re: Strange problem about connection got lost
- Subject: Re: Strange problem about connection got lost
- From: Remco Poelstra <email@hidden>
- Date: Mon, 27 Dec 2010 11:14:32 +0100
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
_______________________________________________
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