Opened 13 years ago

Closed 13 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 Ben Lippmeier)

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)

CleanExitOnExcpetions.patch (1.5 KB) - added by Thomas DuBuisson 13 years ago.
Catch exceptions / Fix the screen resolution on exit

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 years ago by Ben Lippmeier

Description: modified (diff)

Changed 13 years ago by Thomas DuBuisson

Attachment: CleanExitOnExcpetions.patch added

Catch exceptions / Fix the screen resolution on exit

comment:2 Changed 13 years ago by Thomas DuBuisson

I've fixed this bug by catching the exceptions and calling freeGLUT's exit routine. Please see/apply the attached patch.

comment:3 Changed 13 years ago by Ben Lippmeier

pushed

comment:4 Changed 13 years ago by Ben Lippmeier

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.