SQL Compare 9 crashes on launch due to DragDrop registration
mortenn@hapro.no
Posts: 15 Bronze 1
Hello, I have reported this error a few times now, using the crash reporting tool that comes up, but I am getting a little impatient about a fix..
When I launch SQL Compare 9, I immediately get the red gate crash report window, where I click "Send Error Report".
Afterwards, I get the old Microsoft .NET Framework box with exception details and a Continue button.
This is the exception;
************** Exception Text **************
System.InvalidOperationException: DragDrop registration did not succeed. ---> System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am running on Windows 7 x64
I can use the tool if I don't click the "Send Error Report" or "Cancel" buttons of the error reporting tool, so this is clearly not a critical exception.
-- Regards, Morten
▲
▲ ▲
When I launch SQL Compare 9, I immediately get the red gate crash report window, where I click "Send Error Report".
Afterwards, I get the old Microsoft .NET Framework box with exception details and a Continue button.
This is the exception;
************** Exception Text **************
System.InvalidOperationException: DragDrop registration did not succeed. ---> System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am running on Windows 7 x64
I can use the tool if I don't click the "Send Error Report" or "Cancel" buttons of the error reporting tool, so this is clearly not a critical exception.
-- Regards, Morten
▲
▲ ▲
Comments
ftp://support.red-gate.com/patches/SQL_ ... .0.282.zip
If this still fails, can you send the report in again and be sure to include your e-mail address?
Many thanks!
Pete
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
I thought it did, but it was only slightly delayed in crashing.
Same exception is shown by .NET:
System.InvalidOperationException: DragDrop registration did not succeed. ---> System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
--- End of inner exception stack trace ---
at System.Windows.Forms.Control.SetAcceptDrops(Boolean accept)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
// Regards, Morten
Thanks,
Pete
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
// Regards, Morten
Because it's an initialization error, it is sometimes impossible to deliver a proper error because we need the program to be initialized before we can possibly do that.
I'll suggest to Pete that we should debug this and hopefully he or someone else will be in touch soon with some instructions.
I will be on vacation the next two weeks, but I will be able to log in remotely during that time to try things out.
// Regards, Morten
AV software was re-configured, and SQL Compare then started working.
Pete
Red Gate Software Ltd
+44 (0)870 160 0037 ext. 8569
1 866 RED GATE ext. 8569
Thanks for the help figuring this one out!
// Cheers, Morten