none
Getting error 0xc0000409 while trying to debug my app RRS feed

  • Question

  • Recently I started a new UWP app, based upon the Windows Template Studio project type. I've done a little editing in the MainPage.xaml, nothing really major. I've also added a library project to the solution, so two projects in the solution. Then I built it - everything's fine. But it will not, under any circumstances, run when I'm trying to debug it. And of course it won't run if I try running it in release mode. I've tried Debug|ARM, Debug|x64 and Debug|x86 - all fail with the same result. I don't understand why this is happening , as like I sad there's very little I put into the XAML. In fact, here's the MainPage.xaml file:

    <Page.DataContext>
    	<vm:MainPageViewModel x:Name="ViewModel" />
    </Page.DataContext>
    
    <RelativePanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    
    	<controls:PageHeader x:Name="pageHeader" Content="Salary Conversion"
    						 RelativePanel.AlignLeftWithPanel="True"
    						 RelativePanel.AlignRightWithPanel="True"
    						 RelativePanel.AlignTopWithPanel="True" />
    
    	<Grid RelativePanel.Below="pageHeader">
    		<Grid.RowDefinitions>
    			<RowDefinition Height="*" />
    			<RowDefinition Height="*" />
    			<RowDefinition Height="*" />
    		</Grid.RowDefinitions>
    		<TextBlock TextWrapping="WrapWholeWords"
    				   HorizontalAlignment="Center"
    				   VerticalAlignment="Center">(Instructions got here)</TextBlock>
    		<RelativePanel Grid.Row="1"
    					   Name="salaryValuesPanel"
    					   HorizontalAlignment="Center">
    			<VariableSizedWrapGrid MaximumRowsOrColumns="4"
    								   RelativePanel.AlignBottomWithPanel="True"
    								   Orientation="Horizontal">
    				<TextBlock Text="Hourly:" Margin="10,5"/>
    				<TextBox x:Name="HourlyTextBox" Margin="10,5" />
    				<TextBlock Text="Weekly:" Margin="10,5" />
    				<TextBox x:Name="WeeklyTextBox" Margin="10,5" />
    			</VariableSizedWrapGrid>
    		</RelativePanel>
    		<StackPanel Grid.Row="2"
    					Orientation="Horizontal">
    			<Slider Grid.Row="2"
    				x:Name="TimeStatusSlider"
    				HorizontalAlignment="Center"
    				MinWidth="100"
    				Header="Salary Status"
    				Minimum="25" 
    				Maximum="100" LargeChange="25" />
    			<TextBlock Text="{x:Bind TimeStatusSlider.Value}" />
    		</StackPanel>
    	</Grid>
    
    </RelativePanel>
    

    I've only just started - got a lot more to go. All I'm trying to do is see what it looks like when I run it. Here's the error I get:

    "The program '[17396] SalaryConversion.exe' has exited with code -1073740791 (0xc0000409)."

    So, what's going on here and why does it do this??


    Rod

    Saturday, February 9, 2019 4:09 PM

All replies

  • Hello Rod,

    The error 0xc0000409 means "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". But checking your code I haven't found any line which can raise this problem. Can you run your app in release mode? Can you test with a new fresh project which is built from the defulat UWP template? And finally, is it possible for you to create a simple demo which can reproduce your issue for us?

    Best regards,

    Barry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, February 11, 2019 8:30 AM
    Moderator
  • @Rod,

    Any updates regarding this issue?


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, February 14, 2019 1:50 AM
    Moderator
  • Sorry, I haven't had a chance to get back to this. I might not, until the weekend.

    Rod

    Thursday, February 14, 2019 1:44 PM
  • Hello Barry,

    I just tried running the app using, "Start Without Debugger". Twice. It built successfully, but nothing came up. Here's the code behind for the App.xaml.cs file:

    sealed partial class App : Template10.Common.BootStrapper
    {
    	public App()
    	{
    		InitializeComponent();
    		RequestedTheme = Windows.UI.Xaml.ApplicationTheme.Light;
    	}
    
    	public override async Task OnStartAsync(StartKind startKind, IActivatedEventArgs args)
    	{
    		await NavigationService.NavigateAsync(typeof(Views.MainPage));
    	}
    }
    

    Nothing here looks suspicious. I'm at a lose to know what's going on.


    Rod

    Monday, February 18, 2019 4:59 AM
  • @Rod,

    It seems like it is not pure UWP template. Are u using some helper libraries from your code? Can you start from a basic UWP project template first then tell me what SDK you've added from your project? I want to understand whether it is a Visual Studio issue first.

    Best regards,

    Barry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 19, 2019 1:51 AM
    Moderator