Skip to content

Commit e52e0c9

Browse files
committed
Remove SEH try/except blocks incompatible with MSYS2 GCC
1 parent 2f59860 commit e52e0c9

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/Processing.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3453,9 +3453,6 @@ void PApplet::run(){
34533453
glfwSetWindowSizeCallback(gWindow, winsize_cb);
34543454
glfwSetWindowFocusCallback(gWindow, focus_cb);
34553455
glfwSetWindowPosCallback(gWindow, winpos_cb);
3456-
#ifdef _WIN32
3457-
__try {
3458-
#endif
34593456
focused=(glfwGetWindowAttrib(gWindow,GLFW_FOCUSED)==GLFW_TRUE);
34603457

34613458
// Auto-load default.ttf from project root as the default font
@@ -3509,13 +3506,6 @@ void PApplet::run(){
35093506
}
35103507

35113508
glfwFocusWindow(gWindow);
3512-
#ifdef _WIN32
3513-
} __except(EXCEPTION_EXECUTE_HANDLER) {
3514-
char msg[512];
3515-
snprintf(msg,sizeof(msg),"SEH Exception 0x%08lX\n\nThis crash occurred during window initialization.\nPlease report this to the CppMode developers.", GetExceptionCode());
3516-
MessageBoxA(NULL,msg,"CppMode Crash",MB_OK|MB_ICONERROR);
3517-
}
3518-
#endif
35193509

35203510
// Settle loop: poll+swap several times BEFORE this->setup() runs so i3/tiling WMs
35213511
// fully resize the window first. winsize_cb fires during these polls and

0 commit comments

Comments
 (0)