Skip to content

TutorialD1 crash due to null reference exception when Form1_Resize #11

@mrchipset

Description

@mrchipset

Hello @RobyDX , I found a crash issue due to WindowRenderTarget target is null when Form1_Resize is invoked.
image

My environment:
System: Windows 10
.NET Framework: .net 4.8 and Visual Studio 2022.

After debugging the code. I found it is caused by the method calling stack:

InitializeComponent -> Form1_Resize -> Form1_Load

After adding a null check, this problem has been solved. I will create a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions