Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

Trying to debug dll

$
0
0

I was attempting to debug a project on my machine and it started throwing this error..

upon further debugging this issue, the exception throws when i call form.show()

 

i dont know how to reproduce the exception. It was debugging fine and i went to smoke then came back and it threw this exception.

 

SharpDevelop Version : 4.3.0.9338-alpha-5f770be6

.NET Version         : 4.0.30319.1008

OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 3

Current culture      : English (United States) (en-US)

Working Set Memory   : 122424kb

GC Heap Memory       : 34183kb

 

Exception thrown:

System.Runtime.InteropServices.COMException (0x80131327): The provided CONTEXT does not match the specified thread. (Exception from HRESULT: 0x80131327)

   at Debugger.Interop.CorDebug.ICorDebugThread.__EnumerateChains(ICorDebugChainEnum& ppChains)

   at Debugger.Thread.get_IsInValidState()

   at Debugger.Process.CheckSelectedStackFrames()

   at Debugger.Process.RaisePausedEvents()

   at Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()

   at Debugger.MTA2STA.PerformCall()

   at Debugger.MTA2STA.PerformAllCalls()

   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Recent log messages:

06:48:13.539 [1] DEBUG - Debugger: Callback: MDANotification

06:48:13.555 [1] DEBUG - Debugger: Callback: LoadAssembly

06:48:13.555 [1] DEBUG - Debugger: Callback: LoadModule C:\Documents and Settings\moorerb\My Documents\SharpDevelop Projects\AuditCompliance\AuditCompliance\bin\Debug\CustomClassLibrary.dll

06:48:13.555 [1] DEBUG - Debugger: Loaded symbols from disk for CustomClassLibrary.dll

06:48:13.664 [1] DEBUG - Debugger: Callback: LoadAssembly

06:48:13.664 [1] DEBUG - Debugger: Callback: LoadModule C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll

06:48:13.774 [1] DEBUG - Debugger: Callback: LoadAssembly

06:48:13.774 [1] DEBUG - Debugger: Callback: LoadModule C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll

06:48:13.805 [1] DEBUG - Debugger: Callback: LoadAssembly

06:48:13.805 [1] DEBUG - Debugger: Callback: LoadModule Anonymously Hosted DynamicMethods Assembly

06:48:13.805 [1] DEBUG - Debugger: Failed to load dynamic symbols for Anonymously Hosted DynamicMethods Assembly

06:48:13.805 [1] DEBUG - Debugger: Callback: Exception

06:48:13.805 [1] DEBUG - Debugger: Process has queued callbacks

06:48:13.821 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_FIRST_CHANCE)

06:48:13.836 [1] DEBUG - Debugger: Callback: Exception2 (type=DEBUG_EXCEPTION_CATCH_HANDLER_FOUND)

06:48:14.758 [1] DEBUG - Debugger: Callback: LogMessage

06:48:14.758 [1] DEBUG - Debugger: Debugger event: OnLogMessage

06:48:14.758 [1] DEBUG - Debugger: Callback: LogMessage

06:48:14.758 [1] DEBUG - Debugger: Debugger event: OnLogMessage

06:48:14.774 [1] DEBUG - Debugger: Callback: LogMessage

06:48:14.774 [1] DEBUG - Debugger: Debugger event: OnLogMessage

06:48:14.774 [1] DEBUG - Debugger: Callback: LogMessage

06:48:14.774 [1] DEBUG - Debugger: Debugger event: OnLogMessage

06:48:37.258 [1] DEBUG - Debugger: Callback: Breakpoint

06:48:37.274 [1] ERROR - ThreadException caught

--> Exception:

System.Runtime.InteropServices.COMException (0x80131327): The provided CONTEXT does not match the specified thread. (Exception from HRESULT: 0x80131327)

   at Debugger.Interop.CorDebug.ICorDebugThread.__EnumerateChains(ICorDebugChainEnum& ppChains)

   at Debugger.Thread.get_IsInValidState()

   at Debugger.Process.CheckSelectedStackFrames()

   at Debugger.Process.RaisePausedEvents()

   at Debugger.MTA2STA.<>c__DisplayClass4.<EnqueueCall>b__1()

   at Debugger.MTA2STA.PerformCall()

   at Debugger.MTA2STA.PerformAllCalls()

   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

 

---- Post-error application state information:

Installed 3rd party AddIns: 

Workbench.ActiveContent: [AvalonEditViewContent c:\Documents and Settings\moorerb\My Documents\SharpDevelop Projects\AuditCompliance\AuditCompliance\Commands.cs]

ProjectService.OpenSolution: [Solution: FileName=C:\Documents and Settings\moorerb\My Documents\SharpDevelop Projects\AuditCompliance\AuditCompliance.sln, HasProjects=True, ReadOnly=False]

ProjectService.CurrentProject: [CSharpProject: AuditCompliance]


Viewing all articles
Browse latest Browse all 1764

Trending Articles