CMD LINE: Error creating window handle

waynewayne Posts: 2
edited October 10, 2011 10:07AM in SQL Compare Previous Versions
Can someone please tell me why the command line tool I just paid $600 for is trying to create window handles? This makes it completely useless if you ask me. Works fine on the desktop (worthless) and /makesnapshot and /makescripts work. Sorry for the abruptness, I don't need this at the moment.


<message>C:\build\removed>"C:\Program Files (x86)\Red Gate\SQL Compare 9\sqlcompare.exe" /force /Scripts1:"C:\build\Artifacts\Nightly<removed>\2.2.70.26510\Schema\Scripts" /Server2:"<removed>" /Database2:"<removed>" /Report:"C:\build\Artifacts\PublishBuild-Nightly<removed>\2.2.70.26510\Schema\CompareReport.xml" </message>
<message>SQL Compare Command Line V9.0.0.79</message>
<message>==============================================================================</message>
<message>Copyright © Red Gate Software Ltd 1999-2011</message>
<message>Unexpected error: Error creating window handle.</message>
<message>Error creating window handle.</message>
<message>System.ComponentModel.Win32Exception</message>
<message> at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)</message>
<message> at System.Windows.Forms.Control.CreateHandle()</message>
<message> at System.Windows.Forms.Application.MarshalingControl..ctor()</message>
<message> at System.Windows.Forms.Application.ThreadContext.get_MarshalingControl()</message>
<message> at System.Windows.Forms.WindowsFormsSynchronizationContext..ctor()</message>
<message> at System.Windows.Forms.WindowsFormsSynchronizationContext.InstallIfNeeded()</message>
<message> at System.Windows.Forms.Control..ctor(Boolean autoInstallSyncContext)</message>
<message> at System.Windows.Forms.ScrollableControl..ctor()</message>
<message> at System.Windows.Forms.ContainerControl..ctor()</message>
<message> at System.Windows.Forms.Form..ctor()</message>
<message> at RedGate.SQLToolsCommandLine.Licencing.LicenceDialog..ctor()</message>
<message> at #i9G.#m9G..ctor()</message>
<message> at RedGate.SQLCompare.CommandLine.CommandProcessor.GetLicenceDialog()</message>
<message> at RedGate.SQLToolsCommandLine.CommandProcessor.Run()</message>
<message> at #i9G.#bQx.#6sc(String[] args)</message>

Comments

  • Eddie DEddie D Posts: 1,805 Rose Gold 5
    Thank you for your post into the forum and sorry that you have encountered a problem.

    Has this error occurred from running a scheduled batch file or from running your CLI commands in a cmd prompt window?

    I suspect that the license distribution files 'RedGate.SQLCompare.Distribution.mod' and 'RedGate.SQLCompare.distribution.dll' were not created.
    Can you please run the project from the cmd prompt at least once so that these files get created. Then I suspect your scheduled batch file will run successfully.

    Many Thanks
    Eddie
    Eddie Davis
    Senior Product Support Engineer
    Redgate Software Ltd
    Email: support@red-gate.com
Sign In or Register to comment.