You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Remote Server/DriverHostForm.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -77,11 +77,11 @@ public Thread DriverCommand(RequestData requestData)
77
77
78
78
// Process the command on a separate thread allowing other requests to be handled concurrently through this thread, which is running the Windows message loop
79
79
ThreaddriverThread=newThread(newParameterizedThreadStart(ProcessCommand));// Create a new thread on which to make the call to the COM driver
80
-
if(ServerForm.DebugTraceState)ServerForm.LogMessage1(requestData,requestData.Elements[ServerForm.URL_ELEMENT_METHOD],$"DriverCommand has received a command for {deviceKey} on FORM thread {Thread.CurrentThread.ManagedThreadId} Apartment state: {Thread.CurrentThread.GetApartmentState()} Is background: {Thread.CurrentThread.IsBackground} Is thread pool thread: {Thread.CurrentThread.IsThreadPoolThread}");
80
+
if(ServerForm.DebugTraceState)ServerForm.LogMessage1(requestData,requestData.Elements[SharedConstants.URL_ELEMENT_METHOD],$"DriverCommand has received a command for {deviceKey} on FORM thread {Thread.CurrentThread.ManagedThreadId} Apartment state: {Thread.CurrentThread.GetApartmentState()} Is background: {Thread.CurrentThread.IsBackground} Is thread pool thread: {Thread.CurrentThread.IsThreadPoolThread}");
81
81
82
82
driverThread.Start(requestData);// Start the thread supplying the request data to the method
83
83
84
-
if(ServerForm.DebugTraceState)ServerForm.LogMessage1(requestData,requestData.Elements[ServerForm.URL_ELEMENT_METHOD],$"DriverCommand has started the command for {deviceKey} on FORM thread {Thread.CurrentThread.ManagedThreadId}");
84
+
if(ServerForm.DebugTraceState)ServerForm.LogMessage1(requestData,requestData.Elements[SharedConstants.URL_ELEMENT_METHOD],$"DriverCommand has started the command for {deviceKey} on FORM thread {Thread.CurrentThread.ManagedThreadId}");
85
85
returndriverThread;// Return the thread so that the calling method can wait for it to complete and so that this thread can start waiting for the next command
86
86
}
87
87
catch(Exceptionex)// Something serious has gone wrong with the ASCOM Remote server itself so report this to the user
0 commit comments