deno-windowing / dwm

Deno Window Manager: Cross-platform window creation and management
https://deno.land/x/dwm
Apache License 2.0
138 stars 10 forks source link

Resize error #8

Closed nhrones closed 1 year ago

nhrones commented 1 year ago

Just a heads up!

When I had my Surface framework example windows set to resize = false, I had no issues.

When I changed the examples to resize = true, resizing the window would crash with the following exit code:

3221225477 = 0xC0000005 = STATUS_ACCESS_VIOLATION

The problem turned out that I wasn't handling onContextLoss

My Surface frameworks onContextLoss handler now refreshes its ctx reference. This has eliminated the exit error on resize/maximize.