Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#471 closed bug (invalid)

Windows HGL Thread problems

Reported by: mjthomas Owned by:
Priority: normal Milestone: Not GHC
Component: libraries/HGL Version: 6.4.1
Keywords: Cc:
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description (last modified by simonmar)

With CVS HEAD (19 October 2005 Australian morning) 
the following minimal modifications to the HGL library 
give a runtime error in the "GTest.exe" example program:

handleEvent: Before getMessage.
handleEvent: Before yield.
GTest.exe: internal error: resumeThread: thread not 
    Please report this as a bug to glasgow-haskell-,

Without those two putStrLn () calls, none of the three 
example programs "GTests.exe", "Tests.exe" 
or "HelloWorld.exe" displays a Window.

With those two putStrLn () calls, all three example 
programs present their windows and both "Tests.exe" 
and "HelloWorld.exe" appear to run perfectly (although 
note that I have not seen them running at all other than 
in these tests).


Mike Thomas

file: /home/cvs/root/fptools/libraries/HGL/Graphics/HGL/
retrieving revision 1.9
diff -r1.9 WND.hs
>   putStrLn "handleEvent: Before yield."
>     putStrLn "handleEvent: Before getMessage."

Change History (6)

comment:1 Changed 12 years ago by simonmar

Architecture: Unknown
Description: modified (diff)
difficulty: Unknown
Operating System: Windows
Version: None6.4.1

comment:2 Changed 11 years ago by igloo

Milestone: 6.6.1

With 6.6 this problem seems to have been fixed, but the program still doesn't seem to work correctly. The first time I ran it it printed both messages once and then nothing happened. On subsequent runs it produces a number of Windows and then the

GTest.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.

dialog appears. I'm not yet sure whether GHC or the HGL library is at fault.

comment:3 Changed 11 years ago by simonmar

These might be related: #1081, #742

comment:4 Changed 11 years ago by simonmar

Component: Runtime Systemlibraries/HGL
Milestone: 6.6.1Not GHC
Owner: nobody deleted
Status: assignednew

Not tied to GHC any more.

comment:5 Changed 9 years ago by igloo

Resolution: Noneinvalid
Status: newclosed

No longer an extralib, so closing the bug

comment:6 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.