I want to set the text of a text entry while the program is running, but 
wxWidgets/wxHaskell crashes with the following assertion failure:

../src/common/strinc.pp(410): assert "nStart <= length()" failed in erase()

Here a minimal program that crashes when you click the button:

     import Graphics.UI.WX

     main = start $ do
         f <- frame    [ text := "Test" ]
         e <- entry f  [ text := "A" ]
         b <- button f [ text := "Button"
                       , on command := set e [ text := "B" ] ]
         set f [ layout := row 5 [ widget b, widget e]]

Seems to be the same as this bug:


Any workaround?

Best regards,
Heinrich Apfelmus


All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
wxhaskell-devel mailing list

Reply via email to