From b6ef4c465d1dcb92cf327b3306589f7405629bcd Mon Sep 17 00:00:00 2001 From: Geoff Norton Date: Tue, 1 Feb 2005 05:39:42 +0000 Subject: [PATCH] 2005-01-31 Geoff Norton * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a crash reporter log. svn path=/trunk/mcs/; revision=39910 --- mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog | 5 +++++ mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index c7d5773c925..14a68a8ea60 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,4 +1,9 @@ 2005-01-31 Geoff Norton + + * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a + crash reporter log. + +2005-01-31 Geoff Norton * XplatUIOSX.cs: Allow applications to actually exit. diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs index c0743058c06..38310fdb0d6 100644 --- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs +++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIOSX.cs @@ -307,6 +307,8 @@ namespace System.Windows.Forms { internal override void Exit() { getmessage_ret = false; + // Hackaround a codeman bad access + ExitToShell (); } internal override void GetDisplaySize(out Size size) { @@ -640,6 +642,7 @@ namespace System.Windows.Forms { switch ((Msg)msg.Msg) { case Msg.WM_DESTROY: { if (view_window_mapping [msg.HWnd] != null) + XplatUI.Exit (); break; } @@ -1736,6 +1739,8 @@ DEBUG THIS: internal extern static void SetRectRgn (IntPtr rgn, short left, short top, short right, short bottom); [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] internal extern static void DisposeRgn (IntPtr rgn); + [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] + internal extern static void ExitToShell (); #region Cursor imports [DllImport("/System/Library/Frameworks/Carbon.framework/Versions/Current/Carbon")] -- 2.11.4.GIT