Share via

How to solve Unhandled exception 0xc0000409 in ntdll.dll

Petchiammal Rajumayandi 61 Reputation points
2024-02-15T13:03:50.4833333+00:00

I am developing a UWP application with C# language. When I use my application in the flow to navigate from Page1 to Page2 continuously for example at 3rd trial application crashes with the below exception. Application configurations: Minimum Version: Windows 10, version 1809 (10.0; Build 17763)
Target Version: Windows 10, version 2004 (10.0; build 19041)
My PC's OS Version : Windows 11 Home Single Language; Version 22H2 (OS Build 22621.3007)
IDE: Visual Studio Enterprise 2019; Version 16.11.8 Used Nuget Packages:
Microsoft.NETCore.UniversalWindowsPlatform - 6.2.13
Newtonsoft.Json - 12.0.3
Nito.AsyncEx - 5.1.2
WinRTXamlToolkit.Controls.Gauge - 2.3.0
SQLite.uwp - 3.38.0 Faulting application name: Kiosk.exe, version: 1.5.0.41, time stamp: 0x61628bc9
Faulting module name: ntdll.dll, version: 10.0.22621.2506, time stamp: 0xfc3ed07c
Exception code: 0xc0000409
Fault offset: 0x000990e0
Faulting process id: 0x0x211AC
Faulting application start time: 0x0x1DA600DD1A1ADA9
Faulting application path: D:\KIOSK UWP\Kiosk\bin\x86\Release\AppX\Kiosk.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 1d4fba40-b6cf-4f45-be3c-f5e964cbb024
Faulting package full name: wc.kiosk.windows_1.0.0.41_x86__kwmcxzszfer2y
Faulting package-relative application ID: App I am unable to understand what is the issue and do not know how to solve this. I need to deliver the version to production. But stuck with this for the past 20 hours. Could anyone please guide me to solve this ? Thanks.

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Answer accepted by question author

  1. Anonymous
    2024-02-23T03:30:36+00:00

    Hello,

    Welcome to Microsoft Q&A!

    The Error Description for 0xc0000409 is The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

    This seems to be a might be a memory issue again. Based on your description, it seems that you will create controls when you navigate to the target page. Every time when you navigate to a new page, it will create a new page instance. This might leads the raise of the memory. I'd suggest you check the memory usage as well.

    A quick workaround is to enable the NavigationCacheMode property of the page. It will reuse the page when you navigate to it.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.