[Mono-bugs] [Bug 654294] Visual Studio is detached from debugging session

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 23 23:25:49 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=654294

https://bugzilla.novell.com/show_bug.cgi?id=654294#c2


Craig Dunn <craig.dunn at conceptdevelopment.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |craig.dunn at conceptdevelopme
                   |                            |nt.net

--- Comment #2 from Craig Dunn <craig.dunn at conceptdevelopment.net> 2011-02-24 04:25:47 UTC ---
This has happened to me today. In Application.OnCreate I have

System.Threading.Timer t = new System.Threading.Timer(delegate {
   SqliteVersionLogic.Update();
}, null, 15000, 0);


which is calling the following method - synchronous WebClient.DownloadData
requests inside a thread...


public void Update()
{
   ThreadPool.QueueUserWorkItem(notUsed =>
   {
      // stuff happens
      byte[] versionXmlBytes = client.DownloadData(downloadUri);
      // stuff happens
      byte[] productDbBytes = client.DownloadData(new Uri(downloadUrl));
      // stuff happens
   });
}


and now I "sometimes but not always" get
-------
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)
.. (as above) ...
-------
Still trying to work out the pattern/reliable-reproduce steps. I will try to
put together a minimal example as per above. The URLs are not https - they are
of the form http://i.server.com/Subdir/file.xml and
http://i.server.com/Subdir/file.gz


Using Preview 12; Visual Studio 2010; Windows 7 (64 bit); targeting Android
2.2; Linking SDK and user assemblies.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list