Skip to content
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

Random crashes in Windows upon use of (:~) with Event #20

Open
sukhmel opened this issue Jun 23, 2014 · 1 comment
Open

Random crashes in Windows upon use of (:~) with Event #20

sukhmel opened this issue Jun 23, 2014 · 1 comment

Comments

@sukhmel
Copy link

sukhmel commented Jun 23, 2014

  1. When (:~) is used with set ... [on command ...], program crashes, and prints Segmentation fault/access violation in generated code message;
  2. Crashes occur frequently, but not always;
  3. In case when tested with only one object, crash never happens immediately after start;
  4. Upon use of (:=), everything works fine;
  5. Sample code is provided.

This issue was fully decribed in HeinrichApfelmus/reactive-banana#62.

  • when line with (:=), marked with a comment, is used, everything is perfectly fine
  • when (:~) is used, random crashes occur frequently.
> 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 -- OK
>        mapM_ (flip set [on command :~ const (return ())]) buttons
@sukhmel sukhmel changed the title Random crashes in Windows upon use of (:~) with command Random crashes in Windows upon use of (:~) with Event Jun 23, 2014
@swamp-agr
Copy link

Cannot reproduce bug with this environment:

  • wxWidgets: 2.9.5
  • ghc: 7.6.3
  • MinGW (for wxWidgets build): 5.1.16
  • MinGW (for wx build) - default for Haskell Platform.
  • MSYS: 1.0
  • wx: 0.90.1.1

kowey pushed a commit to kowey/wxHaskell that referenced this issue Oct 3, 2017
Added support for Pickerctrl,Hyperlinkctrl and some Streams in wxc an…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants