U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » RichText,QTF,RTF... » Strange memory problem in QTF RichView
Strange memory problem in QTF RichView [message #25597] Wed, 03 March 2010 00:21 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

class TestQTF : public TopWindow
{
	private:
		RichTextView tv;
		
	public:
		typedef TestQTF CLASSNAME;
		TestQTF();
};

TestQTF::TestQTF()
{
	Add(tv.SizePos());
	tv.SetQTF((String)"[, pipopo xxx ]kkkk {{");
}

GUI_APP_MAIN
{
	TestQTF().Run();
}


It shows the error in following image :

index.php?t=getfile&id=2373&private=0

I don't know if it's related to QTF, RichView or String conversion. Without the (String) conversion, the 'freefreefree' is not shown (correctly).
The example is taken from an more complex one using EditString content to fill RichView :

EditString es;
es.SetText("[, pipopo xxx ]kkkk {{");
tv.SetQTF((String)es);


The result is exactly the same.
I noted this because on a bigger app I get weird memory problems that happens once on 30-40 runs, on which sometimes the app hangs on qtf output or renders QTF in weird way with many freefreefree inside.

Ciao

Max

p.s.: an even clearer testcase :

TestQTF::TestQTF()
{
	Add(tv.SizePos());
	String s = "[, pipopo xxx ]kkkk {{";
	tv.SetQTF(s);
}


I tested it even with string as static (global), but the result is the same. I think the bug is related to SetQTF() or qtf processing, not String.
  • Attachment: TestQTF.jpg
    (Size: 8.90KB, Downloaded 853 times)

[Updated on: Wed, 03 March 2010 00:33]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: RichText scrolling problem
Next Topic: WMF to pdf
Goto Forum:
  


Current Time: Mon Apr 27 09:08:41 GMT+2 2026

Total time taken to generate the page: 0.00535 seconds