Opened 14 years ago
Closed 14 years ago
#24 closed defect (fixed)
GLFW-b doesn't reset resolution if the user function throws an exception
| Reported by: | Ben Lippmeier | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Unknown | Version: | 1.5.0 | 
| Keywords: | Cc: | 
Description (last modified by )
On 07/01/2012, at 17:57 , Thomas DuBuisson wrote:
It seems when I throw an exception inside animate GLFW-b fails to reset the proper resolution:
import Graphics.Gloss main = do animate (FullScreen (500,500)) black (rectangleSolid (error "hi"))
Attachments (1)
Change History (5)
comment:1 Changed 14 years ago by
| Description: | modified (diff) | 
|---|
Changed 14 years ago by
| Attachment: | CleanExitOnExcpetions.patch added | 
|---|
comment:2 Changed 14 years ago by
I've fixed this bug by catching the exceptions and calling freeGLUT's exit routine. Please see/apply the attached patch.
comment:4 Changed 14 years ago by
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
Note: See
        TracTickets for help on using
        tickets.
    

Catch exceptions / Fix the screen resolution on exit