Re: Strange problem about connection got lost
Re: Strange problem about connection got lost
- Subject: Re: Strange problem about connection got lost
- From: ico <email@hidden>
- Date: Wed, 29 Dec 2010 00:28:02 +0800
Hi All,
I still can not find the reason why this happen. However, I have more information about it.
When I run the program, and I press the "Pause" from the console tool bar, and resume
the program, all things are good, I get the result.
If I run the program, do nothing and let it run, the program exit without any messages.
So it seems like the program can not run in its own process or thread, run loop or what.
I am not sure, because I think no matter if I run the program in debug mode or pause
it then resume, actually I attach the program process to other or what, like hooked by
GDB?
Any information will be appreciated.
On Mon, Dec 27, 2010 at 6:34 PM, ico
<email@hidden> wrote:
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.
--
==========================
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