Open sukhmel opened 10 years ago
(:~)
set ... [on command ...]
Segmentation fault/access violation in generated code
(:=)
This issue was fully decribed in HeinrichApfelmus/reactive-banana#62.
> 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
Cannot reproduce bug with this environment:
(:~)
is used withset ... [on command ...]
, program crashes, and printsSegmentation fault/access violation in generated code
message;(:=)
, everything works fine;This issue was fully decribed in HeinrichApfelmus/reactive-banana#62.
(:=)
, marked with a comment, is used, everything is perfectly fine(:~)
is used, random crashes occur frequently.