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
I want my MAUI program create mini dump with stack info only when crash. (Windows Only).
Outside main thread, It's done by "SetUnhandledExceptionFilter() -> MiniDumpWriteDump()“. It works partialy, as some exceptions cannot be caught, such as AccessViolation / StackOverflow; other exceptions are caught correctly such as NullReference.
However, within the main thread, I suspect there might be some mechanism in the MAUI framework that prevents this approach from capturing exceptions, thus preventing me from actively generating a dump. Instead, a dump file with the same name as the executable will be generated in the %LOCALAPPDATA%\CrashDumps directory. Unfortunately, I have no control over the size of this dump file, and what I want is a Minidump with a size of approximately 2MB. I wonder if there is any way to achieve this?
Then I found this: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/collect-dumps-crash#types-of-mini-dumps , but it's not working due to some unknown reasons.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
I want my MAUI program create mini dump with stack info only when crash. (Windows Only).
Outside main thread, It's done by "SetUnhandledExceptionFilter() -> MiniDumpWriteDump()“. It works partialy, as some exceptions cannot be caught, such as AccessViolation / StackOverflow; other exceptions are caught correctly such as NullReference.
However, within the main thread, I suspect there might be some mechanism in the MAUI framework that prevents this approach from capturing exceptions, thus preventing me from actively generating a dump. Instead, a dump file with the same name as the executable will be generated in the %LOCALAPPDATA%\CrashDumps directory. Unfortunately, I have no control over the size of this dump file, and what I want is a Minidump with a size of approximately 2MB. I wonder if there is any way to achieve this?
Then I found this: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/collect-dumps-crash#types-of-mini-dumps , but it's not working due to some unknown reasons.
Env: Win11, .Net 8, VS 2022 17.10
Beta Was this translation helpful? Give feedback.
All reactions