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

Implement Exception Handling #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 21, 2023

  1. Implement Exception Handling

    This implements Exception Handling: by using try-catch blocks to handle exceptions that might occur during the execution of dwm-win32. This allows us to call `unmanage()` on all windows before crashing, and thus not losing any programs.
    
    The `__try` block contains the main program code. If an unhandled exception occurs anywhere in this block, control immediately transfers to the `__except` block. The `cleanupOnException` function is then called to unmanage all windows before the program crashes.
    adham-elaraby authored Dec 21, 2023
    Configuration menu
    Copy the full SHA
    56c33a1 View commit details
    Browse the repository at this point in the history