kill deprecated InstallTrackingHandler on OSX Dnd

Atsushi Eno <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Message-ID <[email protected]>
 Hello,

Yesterday I wrote a simple winforms app on osx and it crashed at startup
due to use of deprecated and already vanished API in Snow Leopard,
InstallTrackingHandler, on Dnd (static .ctor).

So, lots of winforms apps (or everything) won't work on osx anymore
unless we eliminate it. Dropping a feature is not good but it should be
done for everything else.

Attached such a (simple) workaround. Feel free to apply, or in case no
one cares, I'll do it.

Atsushi Eno

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
kill-deprecated-dnd.patch (text/plain, 732 B)
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/Dnd.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/Dnd.cs
index 24e6bb9..3e48c20 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/Dnd.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms.CarbonInternal/Dnd.cs
@@ -50,7 +50,7 @@ namespace System.Windows.Forms.CarbonInternal {
 		private static DragTrackingDelegate DragTrackingHandler = new DragTrackingDelegate (TrackingCallback);
 
 		static Dnd () {
-			InstallTrackingHandler (DragTrackingHandler, IntPtr.Zero, IntPtr.Zero);
+			//InstallTrackingHandler (DragTrackingHandler, IntPtr.Zero, IntPtr.Zero);
 		}
 
 		internal Dnd () {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.