I don't think it's your code, or mine has the same defect...;)
Try doing your d&d with #D minimized. For me, this solved the problem.
To resume: If i Drag my object over the #D window (without dropping it), my application hangs but if i do not cross #D region, everyting is fine.
Hope this helps everybody.
I add my error code at the end.
Jacques.
SharpDevelop Version : 2.2.1.2622
.NET Version : 2.0.50727.1378
OS Version : Microsoft Windows NT 6.0.6000.0
Current culture : English (Canada) (en-CA)
Current UI language : en-US
Working Set Memory : 114392kb
GC Heap Memory : 33295kb
Exception thrown:
System.Runtime.InteropServices.COMException (0x8013134F): Object is in a zombie state. (Exception from HRESULT: 0x8013134F)
at Debugger.Interop.CorDebug.ICorDebugAppDomain.GetProcess(ICorDebugProcess& ppProcess)
at Debugger.Wrappers.CorDebug.ICorDebugAppDomain.get_Process() in c:\dev\Serralongue\src\AddIns\Misc\Debugger\Debugger.Core\Project\Src\Wrappers\CorDebug\Autogenerated\ICorDebugAppDomain.cs:line 180
at Debugger.ManagedCallbackProxy.<>c__DisplayClassa.<Exception>b__9() in c:\dev\Serralongue\src\AddIns\Misc\Debugger\Debugger.Core\Project\Src\Debugger\Internal\ManagedCallbackProxy.cs:line 81
at Debugger.MTA2STA.<>c__DisplayClass3.<EnqueueCall>b__0() in c:\dev\Serralongue\src\AddIns\Misc\Debugger\Debugger.Core\Project\Src\Debugger\Internal\MTA2STA.cs:line 37
at Debugger.MTA2STA.PerformAllCalls() in c:\dev\Serralongue\src\AddIns\Misc\Debugger\Debugger.Core\Project\Src\Debugger\Internal\MTA2STA.cs:line 57
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()