The solution contains two projects, a dll, and a command line exe.
in the dll, when i have an "unreachable code detected" warning, it crashes,
the code looks something like:
public void xlTest() {
var testHex1 = "0xABCD11";
var res = testHex1.IsHex();
return; // <-- when i comment this out, it works normally
/// more code...
}
SharpDevelop Version : 4.4.1.9729-7196a277
.NET Version : 4.0.30319.18052
OS Version : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture : Spanish (Mexico) (es-MX)
Current UI language : en
Working Set Memory : 176924kb
GC Heap Memory : 38383kb
Exception thrown:
Debugger.DebuggerException: Type not found: Microsoft.Office.Interop.Excel.Application
at Debugger.MetaData.DebugType.CreateFromName(AppDomain appDomain, String name, DebugType declaringType, DebugType[ genericArguments)
at Debugger.MetaData.DebugType.CreateFromTypeDefOrRef(Module module, Nullable`1 valueType, UInt32 token, DebugType[ genericArguments)
at Debugger.MetaData.DebugType.CreateFromSignature(Module module, SigType sigType, DebugType declaringType)
at Debugger.MetaData.DebugMethodInfo.GetLocalVariablesInScope(ISymUnmanagedScope symScope)
at Debugger.MetaData.DebugMethodInfo.GetLocalVariablesInScope(ISymUnmanagedScope symScope)
at Debugger.MetaData.DebugMethodInfo.GetLocalVariables()
at Debugger.MetaData.DebugMethodInfo.<GetLocalVariables>d__5.MoveNext()
at Debugger.AddIn.TreeModel.StackFrameNode.<LazyGetChildNodes>d__0.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
---- Recent log messages:
10:42:28.549 [1] DEBUG - Debugger: Debugger interface version: v4.0
10:42:28.609 [1] DEBUG - Debugger: ICorDebug initialized
10:42:28.609 [1] DEBUG - Debugger: Executing D:\VS\libCX\cli\bin\Debug\cli.exe
10:42:29.439 [1] DEBUG - Debugger: Callback: CreateProcess
10:42:29.459 [1] DEBUG - Debugger: Callback: CreateAppDomain
10:42:29.539 [1] DEBUG - Debugger: Callback: NameChange: pAppDomain
10:42:29.540 [1] DEBUG - Debugger: Callback: LoadAssembly
10:42:29.542 [1] DEBUG - Debugger: Callback: LoadModule C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
10:42:29.722 [1] DEBUG - Debugger: Callback: CreateThread 9752
10:42:29.740 [1] DEBUG - Debugger: Callback: LoadAssembly
10:42:29.750 [1] DEBUG - Debugger: Callback: LoadModule D:\VS\libCX\cli\bin\Debug\cli.exe
10:42:29.760 [1] DEBUG - Debugger: Loaded symbols from disk for cli.exe
10:42:29.950 [1] DEBUG - Debugger: Callback: NameChange: pAppDomain
10:42:29.970 [1] DEBUG - Debugger: Callback: LoadAssembly
10:42:29.970 [1] DEBUG - Debugger: Callback: LoadModule D:\VS\libCX\cli\bin\Debug\libCX.dll
10:42:29.980 [1] DEBUG - Debugger: Loaded symbols from disk for libCX.dll
10:42:29.990 [1] DEBUG - Debugger: Callback: Breakpoint
10:42:30.180 [1] DEBUG - Break
10:42:30.190 [1] DEBUG - Debugger: Debugger event: OnPaused()
10:42:30.190 [1] INFO - Jump to current line - start
10:42:30.190 [1] INFO - Open file d:\VS\libCX\libCX\MyClass.cs
10:42:30.190 [1] INFO - Jump to current line - end (5 ms)
10:42:30.190 [1] INFO - Local Variables refresh
10:42:30.290 [1] ERROR -
--> Exception:
Debugger.DebuggerException: Type not found: Microsoft.Office.Interop.Excel.Application
at Debugger.MetaData.DebugType.CreateFromName(AppDomain appDomain, String name, DebugType declaringType, DebugType[ genericArguments)
at Debugger.MetaData.DebugType.CreateFromTypeDefOrRef(Module module, Nullable`1 valueType, UInt32 token, DebugType[ genericArguments)
at Debugger.MetaData.DebugType.CreateFromSignature(Module module, SigType sigType, DebugType declaringType)
at Debugger.MetaData.DebugMethodInfo.GetLocalVariablesInScope(ISymUnmanagedScope symScope)
at Debugger.MetaData.DebugMethodInfo.GetLocalVariablesInScope(ISymUnmanagedScope symScope)
at Debugger.MetaData.DebugMethodInfo.GetLocalVariables()
at Debugger.MetaData.DebugMethodInfo.<GetLocalVariables>d__5.MoveNext()
at Debugger.AddIn.TreeModel.StackFrameNode.<LazyGetChildNodes>d__0.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
10:42:30.990 [1] WARN - Stack trace of last exception log:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at ICSharpCode.Core.MessageService.ShowException(Exception ex, String message)
at ICSharpCode.SharpDevelop.Gui.Pads.LocalVarPad.RefreshPad()
at ICSharpCode.SharpDevelop.Gui.Pads.DebuggerPad.<InvalidatePad>b__2()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbenchInternal(Object settings)
at ICSharpCode.SharpDevelop.Sda.CallHelper.RunWorkbench(WorkbenchSettings settings)
at ICSharpCode.SharpDevelop.Sda.SharpDevelopHost.RunWorkbench(WorkbenchSettings settings)
at ICSharpCode.SharpDevelop.SharpDevelopMain.RunApplication()
at ICSharpCode.SharpDevelop.SharpDevelopMain.Run()
at ICSharpCode.SharpDevelop.SharpDevelopMain.Main(String[ args)
---- Post-error application state information:
Installed 3rd party AddIns:
Workbench.ActiveContent: [AvalonEditViewContent D:\VS\libCX\libCX\MyClass.cs]
ProjectService.OpenSolution: [Solution: FileName=D:\VS\libCX\libCX.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: libCX]