Dmitriy Nikitinskiy wrote:
> Heinrich Apfelmus wrote:
>>
>> 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?
>>
> 
> On my side this example works ok.
> I have tested on openSuSe 11.4 and WinXp with ghc-7.0.2 and wxWidgets-2.8.11.

Ah, I should have mentioned that I am on Mac OS X, version 10.6.8 .


Best regards,
Heinrich Apfelmus

--
http://apfelmus.nfshost.com


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to