Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TutorialD1 crash due to null reference exception when Form1_Resize #11

Open
mrchipset opened this issue Jun 20, 2024 · 0 comments · May be fixed by #12
Open

TutorialD1 crash due to null reference exception when Form1_Resize #11

mrchipset opened this issue Jun 20, 2024 · 0 comments · May be fixed by #12

Comments

@mrchipset
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant