Home » U++ Library support » RichText,QTF,RTF... » Strange memory problem in QTF RichView
Re: Strange memory problem in QTF RichView [message #25605 is a reply to message #25599] |
Wed, 03 March 2010 11:25 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
luzr wrote on Wed, 03 March 2010 07:40 | Thanks, fixed.
Your QTF is ill formed - ends with '{{', which is start of table and should be followed at least by space, but the problem was that parsing code fetched terminating zero, correctly decided there should not be any terminating zero at that point, but then while reporting the error attemted to read text past this terminating zero (which lead to "Free" usually and to crash sometimes).
So it was basically bug in bug reporting.
Mirek
|
Yep, I know that the QTF was malformed, but it was on purpose to demonstrate the bug. I don't know it the bug could happen also on corrected code.
BTW, in my app I have random of such problems, as I said before, but I can't reproduce them, because they happens seldom with the same test file.... they may be caused by other hidden bug.
Anyways, this bug could arise when constructing the qtf output directly with SetQTF, adding small pieces of qtf in steps, like my app does.
Ciao
Max
|
|
|
Goto Forum:
Current Time: Mon May 06 06:06:33 CEST 2024
Total time taken to generate the page: 0.02502 seconds
|