[Gambas-user] sudden crash after textarea.text change

Benoit Minisini gambas at ...1...
Wed Jan 16 13:25:04 CET 2008


On mercredi 16 janvier 2008, Jaap Cramer wrote:
> Hi
>
> I'm using gambas to write a program that analyses and displays biblical
> hebrew texts. After choosing a book (cbBooks) and entering Chapter number
> and Verse (eventualy with a verse range) the function (called AOV) makes an
> array. Each entry contains a single verse (string contains hebrew,
> right2left, unicode). The line "tBible.Text = aov.join("\n") should display
> the selected text.
>
> Here is a part of the code:
> aov = mH.ArrayOfVerses(cbBooks.Index, Trim(tbChap.Text))
> tBible.Text = aov.join("\n")
>
> Most of the time it works fine, some times, (same verses), it's like
> something brakes, and gambas hangs. After a hang, it is difficult to debug.
> I tried with steps, and it seems it is no bug in the join-function. The
> array can be viewed in a message-box. When I try to display it in a
> textarea it goes wrong...
>
> Any ideas?
>
> greetings,
> Jaap Cramer, holland
> _____________
>
> Info:
> Ubuntu 7:10
> Gambas 2.0.0
> using GB.QT and GB.QT.EXT (and others)

Maybe a bug in QT when dealing with rtl language in the widget?
Try to PRINT aov.Join("\n") before putting it in tBible.Text

Regards,

-- 
Benoit Minisini




More information about the User mailing list