* gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
from gdiplus have been released
svn path=/trunk/mcs/; revision=48562
+2005-08-19 Jordi Mas i Hernandez <jordi@ximian.com>
+
+ * gdipFunctions.cs: Before calling GdiplusShutdown we make that all of handles
+ from gdiplus have been released
+
2005-08-18 Vladimir Krasnov <vladimirk@mainsoft.com>
* Pen.jvm.cs: Fixed DashSpacing in createStrokedShape
static ulong GdiPlusToken;
static void ProcessExit (object sender, EventArgs e)
- {
+ {
+ // Called all pending objects and claim any pending handle before
+ // shutting down
+ GC.Collect ();
+ GC.WaitForPendingFinalizers ();
GdiplusShutdown (ref GdiPlusToken);
if (UseX11Drawable && Display != IntPtr.Zero) {