Bug 692414

Summary: HttpWebResponse.GetResponse() and Debugger
Product: [Novell Products] MonoTouch Reporter: Josh Engebretson <joshenge>
Component: DebuggerAssignee: Mono Bugs <mono-bugs>
Status: CONFIRMED --- QA Contact: Mono Bugs <mono-bugs>
Severity: Critical    
Priority: P5 - None CC: kumpera, miguel
Version: unspecifiedFlags: kumpera: needinfo? (joshenge)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Josh Engebretson 2011-05-07 00:47:47 UTC
Description of Problem:

HttpWebResponse.GetResponse() is causing problems under the debugger.  It seems to work running without the debugger. This has been tested with MonoTouch 4.0.2 and 4.0.3

Steps to reproduce the problem:

1. The easiest way to see it is to add the following to the OnRenderFrame method of the EAGLView class in the MonoTouch OpenGL template: 

HttpWebRequest.Create ("http://www.google.com").GetResponse ().Close();

Note, that it also causes a problem in other places, so not related to this method.  This is just an easy test case.

2. Debug under the simulator, the call usually works the first time.  Though, subsequent calls exit the app on the simulator and end the debug session.  Every once in awhile you get lucky, so try this a few times and should see the issue.
Comment 1 Rodrigo Kumpera 2011-08-03 18:26:16 UTC
I cannot reproduce your bug doing what you described. I let it hit google for a minute and two without any issues.

When it exit the debugging session, what is the console output?
Comment 2 Miguel de Icaza 2011-08-12 17:40:46 UTC
Perhaps we need a self-contained test case.