Error When Copying Script

stameystamey Posts: 12
edited September 2, 2005 10:12AM in SQL Compare Previous Versions
Version 3.1.8.276. I ran a compare between 2 DBs and then selected the text to sync server two with server one. When I right clicked and selected "Copy", I received the following error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.ExternalException: The requested clipboard operation failed.
at System.Windows.Forms.Clipboard.SetDataObject(Object data, Boolean copy)
at RedGate.SQL.Controls.LargeTextBox.CopyToClipBoard(Int64 fromCharIndex, Int64 toCharIndex, Int32 fromLineIndex, Int32 toLineIndex)
at RedGate.SQL.Controls.BaseTextBox.Copy()
at ᐉ.ᐂ(Object , EventArgs )
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
RedGate.SQLCompare.UI
Assembly Version: 3.1.8.276
Win32 Version: 3.1.8.276
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQLCompare.UI.exe
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
RedGate.SQLCompare.Engine
Assembly Version: 3.1.8.276
Win32 Version: 3.1.8.276
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQLCompare.Engine.DLL
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
RedGate.SQL.Controls
Assembly Version: 3.3.8.119
Win32 Version: 3.3.8.119
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQL.Controls.DLL
RedGate.SQL.Grids
Assembly Version: 3.3.8.119
Win32 Version: 3.3.8.119
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQL.Grids.DLL
ActiproSoftware.TabStripPanel
Assembly Version: 2.0.205.0
Win32 Version: 2.0.205.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/ActiproSoftware.TabStripPanel.DLL
RedGate.SQL.Shared
Assembly Version: 3.3.8.119
Win32 Version: 3.3.8.119
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.SQL.Shared.DLL
ActiproSoftware.DockableWindow
Assembly Version: 2.0.205.0
Win32 Version: 2.0.205.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/ActiproSoftware.DockableWindow.DLL
DevExpress.XtraBars
Assembly Version: 2.1.4.0
Win32 Version: 2.1.4.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/DevExpress.XtraBars.DLL
DevExpress.XtraEditors
Assembly Version: 2.0.4.0
Win32 Version: 2.0.4.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/DevExpress.XtraEditors.DLL
DevExpress.Utils
Assembly Version: 2.0.4.0
Win32 Version: 2.0.4.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/DevExpress.Utils.DLL
ActiproSoftware.Wizard
Assembly Version: 2.0.80.0
Win32 Version: 2.0.80.0
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/ActiproSoftware.Wizard.DLL
RedGate.Licensing.Client
Assembly Version: 1.2.3.41
Win32 Version: 1.2.3.41
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.Licensing.Client.DLL
RedGate.Licensing.Helper
Assembly Version: 1.2.3.41
Win32 Version: 1.2.3.41
CodeBase: file:///C:/Program%20Files/Red%20Gate%20SQL%20Bundle/RedGate.Licensing.Helper.DLL
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.2032
CodeBase: file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.


The actual copy did go to the clipboard, though.

This error has been happening for a while, and has been reported to Redgate in the past. We have tried suggested solutions but it still occurs.

Please advise,
Chris Stamey

Comments

  • Hello,

    Sorry for the delay. The problem seems to be that by default, .NET allows data to be persisted to the clipboard after the application exists so it can be reused. Apparently this causes problems in the application if the clipbaord is used again.

    This problem is going to be fixed in the next major version of SQL Compare.
This discussion has been closed.