#11 keyboard input then segmentation fault

closed-out-of-date
nobody
None
5
2008-02-18
2004-04-23
Anonymous
No

I have tried sample program BouncingBalls.hs
then segmentation fault occured.

$ ghc -package wx --make BouncingBalls.hs -o BouncingBalls
...
$ ./BouncingBalls
(push keyboard 'a' then)
segmentation fault ./BouncingBalls

Then I made small program and tried.

$ cat test.hs
import Graphics.UI.WX

main :: IO ()
main = start test

test :: IO ()
test = do f <- frame []
p <- panel f []
set f [layout := widget p]
set p [on (charKey 'a') := print "test ok"]
$ ghc -package wx --make test -o test
...
$ ./test
(push keyboard 'a' then)
segmentation fault ./test

Is this bug?

my environment is
OS: Linux
wxGTK: 2.4.1
wxhaskell: 0.7
ghc: 6.2

Discussion

  • Logged In: NO

    Update to 0.8.
    There is no problem.

     
  • Eric Kow
    Eric Kow
    2008-02-18

    • status: open --> closed-out-of-date
     
  • Eric Kow
    Eric Kow
    2008-02-18

    Logged In: YES
    user_id=242465
    Originator: NO

    Another user claims this has been fixed in a more recent wxhaskell.
    Closing as out-of-date anyway.