You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NativeAOT: Reporting of the exceptions in the event viewer #73998
I compile WinForms application and it crashes with "marshalling not supported", this message is only visible in the WinDbg, but not in the console and not in the EventViewer.
In general the error message will be printed to stderr, but for a WinExe it will be redirected to NUL for performance by default. You can overwrite the behavior and print it to a specified file via command line:
Activity
hez2010 commentedon May 5, 2021
In general the error message will be printed to stderr, but for a
WinExeit will be redirected toNULfor performance by default. You can overwrite the behavior and print it to a specified file via command line:kant2002 commentedon May 6, 2021
@hez2010 This does not works for WinForms application. Or at least this does not works for me. Empty file produced.
hez2010 commentedon May 6, 2021
@kant2002 I've tested your
CoreRTWinFormsTestBedand this approach works for me. Did you forget to put a2before>err.log?Update: it only works in cmd. It won't work if you're using powershell.
hez2010 commentedon May 6, 2021
Or you can use
& .\WindowsFormsApp1.exe 2>&1 | Out-Stringin powershell.Report unhandled exceptions/FailFast in event log
Report unhandled exceptions/FailFast in event log (#98152)