Cannot launch a second instance of sgp

Hi,
as we can’t make pictures with two cam at the same time on one instance and ditherig :frowning: , I tried to open a 2nd instance of sgp, but I can’t…
I’ve got this error :

************** 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.Form.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.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.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)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Sequence Generator
Assembly Version: 2.5.1.17
Win32 Version: 2.5.1.17
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/Sequence%20Generator.exe

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

ServiceStack
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.DLL

ServiceStack.Interfaces
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.Interfaces.DLL

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 4.5.8.15203
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/Newtonsoft.Json.DLL

System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

RestSharp
Assembly Version: 104.1.0.0
Win32 Version: 104.1.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/RestSharp.DLL

ServiceStack.ServiceInterface
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.ServiceInterface.DLL

ServiceStack.Common
Assembly Version: 3.9.48.0
Win32 Version: 3.9.48.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.Common.DLL

ServiceStack.Text
Assembly Version: 3.9.45.0
Win32 Version: 3.9.45.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/ServiceStack.Text.DLL

System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll

ASCOM.DeviceInterfaces
Assembly Version: 6.0.0.0
Win32 Version: 6.2.0.2774
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ASCOM.DeviceInterfaces/6.0.0.0__565de7938946fba7/ASCOM.DeviceInterfaces.dll

GraphLib
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/GraphLib.DLL

MediaSlider
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/MediaSlider.DLL

Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

System.Data.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.dll

System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll

NotificationWindow
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Sequence%20Generator/NotificationWindow.DLL

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll

Microsoft.GeneratedCode
Assembly Version: 1.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

ASCOM.Utilities
Assembly Version: 6.0.0.0
Win32 Version: 6.2.0.2774
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ASCOM.Utilities/6.0.0.0__565de7938946fba7/ASCOM.Utilities.dll

Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

ASCOM.DriverAccess
Assembly Version: 6.0.0.0
Win32 Version: 6.2.0.2774
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ASCOM.DriverAccess/6.0.0.0__565de7938946fba7/ASCOM.DriverAccess.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (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:

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

I don’t understand what it correspond to…(I’m not a not a pro for that and I’m french, so… :slight_smile:
so, if someone could help me, it would be great !!

Thanks

nico

Hi Nico,

I think you have to disable the ‘Allow external control of telescope’ on the Telescope tab in the control panel in one of the instances you launch.

I have noticed though that in the latest version of SGP this does not result in an error anymore, instead a message is displayed telling the user that this optionwill be turned off.

Hope this helps,

Mike

Hi Nico,

I would suggest to first update to the actual non-beta SGP-Version.

Kind regards,
Horia

Hi,

you were right Mike, it worked ! it was just this to turn off. so nice :slight_smile:

Thank you Mike and Horia for your help !

Nico