Replies: 3 comments 2 replies
-
The NTSTATUS 0xC0000374 is STATUS_HEAP_CORRUPTION. This means that something is corrupting the native process heap. To give a quick example of how this error can occur:
Heap corruption is caused when a write to memory corrupts the heap control block. This above example deliberately decreases the pointer so that it is in the heap control block allocated by HeapAlloc. There are other ways of triggering this bug too. The problem is, if Avalonia is doing thigs properly, then a class that acts like the Xaml App must be declared too. But the issue here is that there is metadata querying going on too. This unfortunately means that there could be a bug in Avalonia. |
Beta Was this translation helpful? Give feedback.
-
@DarranRowe This is also happening when i move the instantiation out of avalonia. Could it be a bug in avalonia ?
|
Beta Was this translation helpful? Give feedback.
-
So, i replaced with the code under and it's happening. I also tried what you have mentionned running an Microsoft.UI.Xaml.Application (with and without an maui application) and the crash occurs as well. I assume that you have right an the bug comes from avalonia.
Then i tried directly with avalonia source code here is the stack trace
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, can someone knows why sometimes this exception occurs when i try to launch my application. This crashs occurs on Microsoft.UI.Xaml.Hosting.WindowsXamlManager.InitializeForCurrentThread().
I am trying to launch an winui3 window from avalonia.
Beta Was this translation helpful? Give feedback.
All reactions