#1692: GLUT timedCallback fires twice
-------------------------------------+--------------------------------------
Reporter: [EMAIL PROTECTED] | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries (other) | Version: 6.6.1
Severity: normal | Keywords:
Difficulty: Unknown | Os: MacOS X
Testcase: | Architecture: x86
-------------------------------------+--------------------------------------
The Graphics.UI.GLUT.Callbacks.Global.addTimerCallback doesn't function as
expected when called from a timed callback.
Expected Behavior:
When a timed callback is registered, it fires at the specified interval.
Observed Behavior:
If the timed callback is registered from a timed callback, the callback
fires immediately every other time. The first callback is appropriately
delayed and the second fires immediately.
Impact:
50% of callbacks fire prematurely.
Workaround:
Check the time between callbacks. If the callback occurs within a certain
amount of time, do no work and register another callback. Repeat until a
reasonable amount of time has passed.
System:
Mac OS X 10.4.10,
Macbook Pro 2.33 GHz Core 2 Duo, 2 GB of RAM, ATI X1600
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1692>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs