Can a bug in simple WPF programming trigger a blue screen?

I did some .NET programming in WPF that included reading .png and .txt files, placing images on the canvas, moving them around, and then deleting them, and suddenly I get bluescreen. I did not think that my little skill could cause a problem with the driver until I restart and do the same with my program, and I received another driver error. It seems that the Intel GPU driver failed and my resolution is gone. However, the second time there is no blues screen. I played quite quickly and freely, adding and removing elements from canvas children. My question is, how can such simple programming cause such a serious error, and how can I fix it?

+5
source share
3 answers

It looks like you have an error driver. WPF alone cannot cause a blue screen, but WPF calls DirectX, which in turn calls the graphics driver, and if the graphics driver contains errors, this can lead to a blue screen.

You cannot fix this at the WPF level because WPF is innocent of this particular problem. You need to update the graphics driver. A possible workaround, if there are no updates or the latest version does not fix, is to disable hardware acceleration for WPF, as this can lead to the removal of the buggy driver bit.

+5
source

bluescreens , . (. 1) - , , .

, , . , , , - , .

:

1 , bluescreens , , , , , bluescreen, , . - (2) ( ).

2, .

+6

WPF (DirectX) , :

:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

DWORD

" " . , . , ​​ .

Disable hardware acceleration is a DWORD value of 0 or 1. A value of 1 disables hardware acceleration. A value of 0 provides hardware acceleration, provided that the system meets the requirements for hardware acceleration; see Graphic Rendering Levels for more information.

+1
source

All Articles