[Mono-bugs] [Bug 654294] New: Visual Studio is detached from debugging session
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Nov 17 09:33:57 EST 2010
https://bugzilla.novell.com/show_bug.cgi?id=654294
https://bugzilla.novell.com/show_bug.cgi?id=654294#c0
Summary: Visual Studio is detached from debugging session
Classification: Mono
Product: MonoDroid
Version: unspecified
Platform: Other
OS/Version: Windows 7
Status: NEW
Severity: Major
Priority: P5 - None
Component: Debugger
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: tno at vizrt.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Description of Problem:
Running a basic project throws errors in Visual Studio IDE about detaching from
debugging session
Steps to reproduce the problem:
1. Create a new MonoDroidApplication project
2. Add code as below
button.Click += delegate { button.Text = string.Format("{0} clicks!", count++);
}; <----- existing line when starting a new project
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create(@"http://10.211.111.7:8177/templates");
request.Method = "GET";
request.BeginGetResponse(OnGotResponse, request);
}
private void OnGotResponse(IAsyncResult ar)
{
Log.D("TNO", "#1");
try
{
var request = (HttpWebRequest) ar.AsyncState;
var response = (HttpWebResponse)request.EndGetResponse(ar);
Log.D("TNO", "#2");
using (var stream = response.GetResponseStream())
{
if (stream != null)
{
StreamReader sr = new StreamReader(stream);
var data = sr.ReadToEnd();
Log.D("TNO", data);
stream.Close();
}
}
response.Close();
}
catch (Exception)
{
Log.D("TNO", "#EXCEPTION");
}
}
Result when running:
---------------------------
Microsoft Visual Studio
---------------------------
EXCEPTION: System.Collections.Generic.KeyNotFoundException: The given key was
not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at MonoVS.Engine.SoftDebugger.ControllerImpl.OnThreadDeath(ThreadMirror
mirror)
at
MonoVS.Engine.SoftDebugger.ControllerImpl.SoftDebuggerSession.OnHandleEvent(Event
e)
at Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent(EventSet set, Boolean
dequeuing)
at Mono.Debugging.Soft.SoftDebuggerSession.HandleEvent(EventSet set)
at Mono.Debugging.Soft.SoftDebuggerSession.EventHandler()
---------------------------
OK
---------------------------
E/mono ( 484): [0x508700:] EXCEPTION handling:
System.Net.Sockets.SocketException: An address incompatible with the requested
protocol was used
D/TNO ( 484): #1
D/TNO ( 484): #2
D/dalvikvm( 484): GC_FOR_MALLOC freed 7483 objects / 368304 bytes in 98ms
I/dalvikvm-heap( 484): Grow heap (frag case) to 3.655MB for 916216-byte
allocation
D/dalvikvm( 484): GC_FOR_MALLOC freed 45 objects / 1816 bytes in 128ms
D/TNO ( 484): <feed xmlns="http://www.w3.org/2005/Atom"> ..... <snip>
D/dalvikvm( 179): GC_EXPLICIT freed 677 objects / 37544 bytes in 604ms
F/MonoDroid( 484): ERROR: Unable to detach current thread from the Java VM!
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list