Home » U++ Library support » RichText,QTF,RTF... » Fatal error appear every time when use SetQTF
|
Re: Fatal error appear every time when use SetQTF [message #36623 is a reply to message #36622] |
Thu, 21 June 2012 17:06 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
Well, first of all, commenting out // GuiLock is wrong.
I guess you might have done this because it seemed to be frozen - it would be no wonder as GuiLock, as written, would cover Sleep call, leaving virtually no chance for main thread to run...
First of all, try:
for(;;)
{
{
GuiLock __;
if(Thread::IsShutdownThreads())
break;
String last = view.GetQTF();
String now = last + "&[8 [@4 show the qtf string ] ]";
view.SetQTF(now);
view.ScrollEnd();
}
Sleep(20);
}
[Updated on: Thu, 21 June 2012 17:07] Report message to a moderator
|
|
|
|
|
Re: Fatal error appear every time when use SetQTF [message #36632 is a reply to message #36630] |
Thu, 21 June 2012 23:36 |
|
akebee
Messages: 90 Registered: August 2011 Location: China
|
Member |
|
|
mirek,i finally aware of you add the brackets before the Sleep,
{
GuiLock __;
if(Thread::IsShutdownThreads())
break;
String last = view.GetQTF();
String now = last + "&[8 [@4 show the qtf string ] ]";
view.SetQTF(now);
view.ScrollEnd();
}
Sleep(20);
so the ~GuiLock() have changce to run......and it works well this time.
[Updated on: Fri, 22 June 2012 00:00] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Sep 21 05:09:55 CEST 2024
Total time taken to generate the page: 0.02732 seconds
|