Hello. I was trying to debug my
program with threads (program is representing server-client
interactions). I placed a breakpoint here:
private void
RunServerStream() {
while(run == true) {
if(tcpListener.Pending())
{
int availableThreads,
completePortThreads;
> System.Threading.ThreadPool.GetAvailableThreads(out
availableThreads, out completePortThreads);
if(availableThreads >
0) {
MessageBox.Show("Got
one!");
new
System.Threading.Thread(ProcessClient).Start();
}
}
}
}
And when debug stopped
here, I was not able to make a step. So, I pressed “Shift + F5”.
Minute later I run
program. Then I pushed "start" button on form of
server, then started another program as
client and pushed button“connection” several times. Well, then I pushed button"stop" on server, and closed main form. Then... this exception appear.
Well, I definitely
can say that my program have many bugs. I
can send you copy of project if it's needed.
SharpDevelop Version :
4.3.3.9663-463ee024
.NET Version : 4.0.30319.18408
OS Version : Microsoft
Windows NT 6.1.7601 Service Pack 1
Current culture : Russian (Russia)
(ru-RU)
Running under WOW6432, processor
architecture: x86-64
Working Set Memory : 167664kb
GC Heap Memory : 31958kb
Exception thrown:
Debugger.DebuggerException: Evaluation
can not be stopped
в Debugger.Eval.WaitForResult()
в
Debugger.Eval.InvokeMethod(DebugMethodInfo method, Value thisValue,
Value[ args)
в Debugger.Value.InvokeMethod(Value
objectInstance, MethodInfo methodInfo, Value[ arguments)
в
Debugger.Value.GetPropertyValue(Value objectInstance, PropertyInfo
propertyInfo, Value[ arguments)
в
Debugger.Value.GetMemberValue(Value objectInstance, MemberInfo
memberInfo, Value[ arguments)
в
Debugger.Value.GetMemberValue(String name)
в
Debugger.Exception.GetStackTrace(String endOfInnerExceptionFormat)
в
ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object
sender, ExceptionEventArgs e)
в
Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)
в
Debugger.Process.RaisePausedEvents()
в
Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()
в Debugger.MTA2STA.PerformCall()
в
Debugger.MTA2STA.PerformAllCalls()
в
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry
tme)
в
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object
obj)
в
System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
в
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
в
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
в
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
tme)
в
System.Windows.Forms.Control.InvokeMarshaledCallbacks()
---- Recent log messages:
14:10:18.180 [1] DEBUG - Adding
existing class MainForm from MainForm_client.cs
14:10:18.180 [1] DEBUG - Creating
compound for BD_course_client.MainForm
14:10:18.180 [1] DEBUG -
ParseInformationUpdated C:\SharpDevelop
Projects\BD_course\BD_course_client\MainForm_client.cs new!=null:True
14:10:39.100 [1] DEBUG -
ActiveContentChanged to [AvalonEditViewContent C:\SharpDevelop
Projects\BD_course\BD_course\MainForm_server.cs]
14:10:39.100 [1] DEBUG -
ActiveWorkbenchWindowChanged to [AvalonWorkbenchWindow:
MainForm_server.cs]
14:10:39.100 [1] INFO - CurrentProject
changed to BD_course_server
14:10:39.100 [1] DEBUG -
NavigationService
ActiveViewContent: MainForm_server.cs
Subview: ${res:FormsDesigner.DesignTabPages.SourceTabPage}
14:10:39.100 [1] DEBUG -
ActiveViewContentChanged to [AvalonEditViewContent C:\SharpDevelop
Projects\BD_course\BD_course\MainForm_server.cs]
14:10:56.229 [1] DEBUG - Debugger:
Callback: MDANotification
14:10:56.229 [1] DEBUG - Debugger:
Process has queued callbacks
14:10:56.229 [1] DEBUG - Debugger:
Callback: ExitThread 5064
14:10:56.229 [1] DEBUG - Debugger:
Thread 5064 exited
14:10:56.291 [1] DEBUG - Debugger:
Callback: Exception
14:10:56.291 [1] DEBUG - Debugger:
Process has queued callbacks
14:10:56.307 [1] DEBUG - Debugger:
Callback: Exception2 (type=DEBUG_EXCEPTION_FIRST_CHANCE)
14:10:56.307 [1] DEBUG - Debugger:
Callback: Exception2 (type=DEBUG_EXCEPTION_USER_FIRST_CHANCE)
14:10:56.307 [1] DEBUG - Debugger:
Callback: Exception
14:10:56.307 [1] DEBUG - Debugger:
Process has queued callbacks
14:10:56.307 [1] DEBUG - Debugger:
Callback: Exception2 (type=DEBUG_EXCEPTION_UNHANDLED)
14:10:56.447 [1] DEBUG - Debugger:
Debugger event: OnExceptionThrown()
14:10:56.463 [1] INFO - Decompiled code
debugging is disabled!
14:10:56.478 [1] DEBUG - Debugger:
Callback: ExceptionUnwind
14:10:56.993 [1] DEBUG - Debugger:
Aborting eval: Function call: String
System.Exception.get_StackTrace()
14:11:00.019 [1] DEBUG - Debugger: Rude
aborting eval: Function call: String
System.Exception.get_StackTrace()
14:11:05.542 [1] ERROR -
ThreadException caught
--> Exception:
Debugger.DebuggerException: Evaluation
can not be stopped
в Debugger.Eval.WaitForResult()
в
Debugger.Eval.InvokeMethod(DebugMethodInfo method, Value thisValue,
Value[ args)
в Debugger.Value.InvokeMethod(Value
objectInstance, MethodInfo methodInfo, Value[ arguments)
в
Debugger.Value.GetPropertyValue(Value objectInstance, PropertyInfo
propertyInfo, Value[ arguments)
в
Debugger.Value.GetMemberValue(Value objectInstance, MemberInfo
memberInfo, Value[ arguments)
в
Debugger.Value.GetMemberValue(String name)
в
Debugger.Exception.GetStackTrace(String endOfInnerExceptionFormat)
в
ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object
sender, ExceptionEventArgs e)
в
Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)
в
Debugger.Process.RaisePausedEvents()
в
Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()
в Debugger.MTA2STA.PerformCall()
в
Debugger.MTA2STA.PerformAllCalls()
в
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry
tme)
в
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object
obj)
в
System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
в
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
preserveSyncCtx)
в
System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
в
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
tme)
в
System.Windows.Forms.Control.InvokeMarshaledCallbacks()
---- Post-error application state
information:
Installed 3rd party AddIns:
Workbench.ActiveContent:
[AvalonEditViewContent C:\SharpDevelop
Projects\BD_course\BD_course\MainForm_server.cs]
ProjectService.OpenSolution: [Solution:
FileName=C:\SharpDevelop Projects\BD_course\BD_course.sln,
HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject:
[CSharpProject: BD_course_server]