Bug 4932 - InvalidOperationException during exit (maybe related to window losing focus)
Summary: InvalidOperationException during exit (maybe related to window losing focus)
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-05-07 16:59 UTC by Csaba Halász
Modified: 2015-08-20 13:57 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Csaba Halász 2012-05-07 16:59:15 UTC
When exiting monodevelop which has a solution open, I frequently get the following exception, mostly (only?) if monodevelop window loses focus while shutdown is in progress (which takes some seconds).

ERROR [2012-05-07 22:51:14Z]: An unhandled exception has occured. Terminating MonoDevelop? True
System.InvalidOperationException: Handle is not allocated
  at System.Runtime.InteropServices.GCHandle.get_Target () [0x0001b] in mono-git-c5a9e2fd/mcs/class/corlib/System.Runtime.InteropServices/GCHandle.cs:80 
  at System.WeakReference.get_Target () [0x00000] in mono-git-c5a9e2fd/mcs/class/corlib/System/WeakReference.cs:95 
  at Mono.Addins.ExtensionContext.DisposeChildContext (Mono.Addins.ExtensionContext ctx) [0x00039] in mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionContext.cs:142 
  at Mono.Addins.ExtensionContext.Finalize () [0x0000b] in mono-addins-0.6.2/Mono.Addins/Mono.Addins/ExtensionContext.cs:79
Comment 1 Lluis Sanchez 2015-08-20 13:47:59 UTC
Is this still an issue?
Comment 2 Csaba Halász 2015-08-20 13:57:15 UTC
No, I haven't seen this in quite a while, and can't reproduce it now.