Commit 0ec0db4
committed
Fix Windows exit code -1073741819: always copy DLLs next to binary, null-check glfwCreateWindow
- checkWindowsDLLs: copy glfw3.dll, glew32.dll, libgcc_s_seh-1.dll,
libstdc++-6.dll, libwinpthread-1.dll next to the compiled binary on
every build, not just after a pacman install. Previously the DLLs
existed in C:\msys64\mingw64\bin but Windows couldn't find them at
runtime unless they were next to the exe or on PATH -- causing
0xC0000005 (access violation) immediately on sketch launch.
- Processing.cpp: null-check glfwCreateWindow() return value. If window
creation fails (old GPU driver, missing OpenGL 3.3 support), show a
MessageBoxA with driver update links instead of crashing with a null
pointer dereference. Previously the code passed null directly to
glfwSetWindowRefreshCallback() causing 0xC0000005.1 parent 17ed6af commit 0ec0db4
2 files changed
Lines changed: 42 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3053 | 3053 | | |
3054 | 3054 | | |
3055 | 3055 | | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
3056 | 3074 | | |
3057 | 3075 | | |
3058 | 3076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
495 | 499 | | |
496 | 500 | | |
497 | | - | |
498 | | - | |
| 501 | + | |
499 | 502 | | |
500 | 503 | | |
501 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
502 | 524 | | |
503 | 525 | | |
504 | 526 | | |
| |||
0 commit comments