Hello,
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:
http://sourceforge.net/tracker/index.php?func=detail&aid=1826548&group_id=9863&atid=109863
Any workaround?
Best regards,
Heinrich Apfelmus
--
http://apfelmus.nfshost.com
------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
wxhaskell-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel