-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in win x64 #62
Comments
That's a tough one. I don't have access to a Windows machine and can't test it. Chances are that Does the problem appear on other machines as well? Does a similar example for wxHaskell exhibit the same problem? |
Sorry for long reply. |
I can't reproduce the crash on OS X 10.6. That said, only a single button is shown on my screen. No idea why, but since no layout has been specified, this behavior is not forbidden, at least. |
I tested compiled code on another Win-machine, behaviour is the same. Although I am not able to compile from source there. Speaking of only one button -- that's how it's supposed to be, layout does not affect the issue. |
The pure wxHaskell version allows us to distinguish between problems in reactive-banana (which I could fix) and wxHaskell (which I can't fix). If the issue persists in a version that only uses |
I have compiled under windows without reactive-banana completely. When line with I guess, that it might be an issue with incorrect version of wx on my machine, > import Control.Monad (replicateM, mapM_)
> import Graphics.UI.WX
> main = start $ do
> pad <- frame [ ]
> buttons <- replicateM 2
> $ button pad []
> mapM_ (flip set [on command := return ()]) buttons -- (*) fine
> mapM_ (flip set [on command :~ const (return ())]) buttons
|
Looks like it's an issue with wxHaskell, then, so I can't do much about it. I'll close the issue here, but feel free to to reopen! If wxHaskell is giving you too much trouble, you may want to have a look at my other project threepenny-gui. It's a small GUI framework that uses the web browser and has FRP built in. |
It seems, that
event0
produces occasional crashes in Windows, below is description and an example.There are three possible behaviours I observed:
error message is
when amount of buttons (see below) is one, (1) never occurs
upon increase of amount of buttons, (2) seems to occure less, than before
amount of (1) or (2) is estimated to be about 30-40 %
The text was updated successfully, but these errors were encountered: