I think because i'm using sockets and can't be closed.
I get this error:
SharpDevelop Version : 4.4.2.9749-39bf891c
.NET Version : 4.0.30319.42000
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : Dutch (Netherlands) (nl-NL)
Current UI language : en
Working Set Memory : 128432kb
GC Heap Memory : 26560kb
Unhandled WPF exception
Exception thrown:
System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)
at Debugger.Interop.CorDebug.ICorDebugProcess.__Stop(UInt32 dwTimeoutIgnored)
at Debugger.Process.AsyncTerminate()
at Debugger.Process.Terminate()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.Stop()
at ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand.Run()
at ICSharpCode.Core.Presentation.CommandWrapper.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at ICSharpCode.Core.Presentation.ToolBarButton.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
16:26:09.452 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
16:26:09.455 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:09.456 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
16:26:09.463 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:09.463 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
16:26:09.479 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:09.479 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
16:26:09.486 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:09.487 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
16:26:09.505 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:09.505 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Remoting.dll
16:26:10.599 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:10.600 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
16:26:10.614 [1] DEBUG - Debugger: Callback: LoadAssembly
16:26:10.614 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
16:26:17.989 [1] DEBUG - Debugger: Callback: CreateThread 6812
16:26:18.954 [6] DEBUG - Telling worker process to exit
16:26:18.954 [6] DEBUG - Waiting for thread-join
16:26:18.961 [15] DEBUG - Cannot read from WorkerProcess 6820: end of stream
16:26:18.961 [15] DEBUG - Stopped reading from WorkerProcess 6820.
16:26:18.961 [15] DEBUG - Telling worker process to exit
16:26:18.961 [15] DEBUG - End of reader thread on WorkerProcess 6820.
16:26:18.962 [6] DEBUG - Joined!
16:26:39.333 [1] DEBUG - Activated feature 'ICSharpCode.SharpDevelop.Project.Commands.StopDebuggingCommand', activation=Toolbar
16:26:39.333 [1] INFO - Debugger Command: Stop
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent C:\Users\moh\Desktop\projects\TCPClientClean\TCPClientClean\TCPControl.vb]
ProjectService.OpenSolution: [Solution: FileName=C:\Users\moh\Desktop\projects\TCPClientClean\TCPClientClean.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [VBNetProject: TCPClientClean]