Hello Siegfried,
Thank you for you reply; I have a VM with Windows 2003 R2 and .NET 3.5 with latest updates and, ofcourse, 4.0
I use SharpDevelop for quite a while and I never had problems with it (nice piece of software, by the way !)
Now, I created (with SD 3.2) a .NET 3.5 project for integrating a component into a Kofax Capture Scan module.
The component is declared as COMVisible and CLSCompliant. I can debug it quite easily with SD 3.2 ...
Now, the same project is loaded in SD 4.2 and compiles OK; no conversion is performed, so that I can open it with SD 3.2; when trying to debug it wil not stop to breakpoints as if they are not set.
The .NET wersion used by Kofax Capture is 3.5 if I'm not mistaken; also SD 4.2 should support it, no?
I created a console project and SD 4.2 will stop at breakpoints as it should; i got the following exception though ...
SharpDevelop Version : 4.2.0.8267-alpha-5f77498c
.NET Version : 4.0.30319.239
OS Version : Microsoft Windows NT 5.2.3790 Service Pack 2
Current culture : English (United States) (en-US)
Working Set Memory : 157920kb
GC Heap Memory : 43102kb
Exception thrown:
System.NullReferenceException: Object reference not set to an instance of an object.
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.JumpToCurrentLine()
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.debuggedProcess_ExceptionThrown(Object sender, ExceptionEventArgs e)
at Debugger.Process.OnExceptionThrown(ExceptionEventArgs e)
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:
Failed to append recent log messages.
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at ICSharpCode.SharpDevelop.Sda.LogMessageRecorder.AppendRecentLogMessages(StringBuilder sb, ILog log)
at ICSharpCode.SharpDevelop.Sda.ExceptionBox.getClipboardString()
---- Post-error application state information:
Installed 3rd party AddIns: [Machine.Specifications Addin]
Workbench.ActiveContent: [AvalonEditViewContent Z:\CSharp\debug\debugbreakpoints\debugbreakpoints\Program.cs]
ProjectService.OpenSolution: [Solution: FileName=Z:\CSharp\debug\debugbreakpoints\debugbreakpoints\debugbreakpoints.sln, HasProjects=True, ReadOnly=False]
ProjectService.CurrentProject: [CSharpProject: debugbreakpoints]
For confidentiality reasons I cannot post the code of my project; but I can setup a generic one if you like; then you also need to have the Kofax Capture environment, which is another story ... But I can give you remote access to my dev machine - I used mikogo and it does the job just right. Please let me know if you are interested ...
Thank you for your support!
Best regards,
SoftExpert