https://bugs.winehq.org/show_bug.cgi?id=48290
Bug ID: 48290 Summary: SharpDevelop exception in debugger Product: Wine Version: 5.0-rc1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: 3dw_50ssu16amyn7@byom.de Distribution: ---
Created attachment 65987 --> https://bugs.winehq.org/attachment.cgi?id=65987 example project with reproduction code
Using SharpDevelop 5.1 and running the following code with the debugger results in an error not handled by the debugger but the catch clause from SharpDevelop.
var assembly = Assembly.GetExecutingAssembly(); using (Stream stream = assembly.GetManifestResourceStream("NonExistentResource")) { using (var reader = new StreamReader(stream)) { reader.ReadToEnd(); }}
On Windows the debugger catches the error correctly.
Steps to reproduce: - Install dotnet45, vcrun2008 and SharpDevelop - download project/insert above code in SharpDevelop - Compile and run with debugger (press F9) - Error should be catched by the debugger like on Windows
Relevant log lines: ERROR- ThreadException caught System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. ... (see log)
SharpDevelop 5.1 download: https://sourceforge.net/projects/sharpdevelop/files/SharpDevelop%205.x/5.1/