Sanel, sorry about the long delay of my answer.
I still have the problem.
I don't understand what you mean with "it takes so long to show Windows
dialog", and I can't figure out where I could put the Fl::awake()
Regards,
David
> Hi,
>
> Sorry for a bit delay for reply: have you manage to solve t
Hi,
Sorry for a bit delay for reply: have you manage to solve this issue?
I'm not running Windows so it is a bit hard to reproduce exact same
behavior (on linux FLTK will run FLTK builtin dialog). The first question is
(after I quickly scanned your previous posts) why it take so long to
show Wind
Sanel,
Thank you for your help but I couldn't solve the problem.
When I try to call start_job () from the dedicated worker thread with the
invocation properly protected, that is:
Fl::lock ();
p->start_job (1);
Fl::unlock ();
Then start_job () blocks forever at line
if (P
Two strategies comes to my mind (maybe others with more experience will
have better ideas):
* put both start_job()/end_job() in different thread, protect them with
Fl::lock()/Fl::unlock(), and after it gets completed, call
Fl::awake(NULL) to notify the main thread
* the second one is to put start
Thanks, but then what should I do to avoid the blocking?
> Have you tried to use locking described at:
> http://www.fltk.org/doc-1.3/advanced.html?
>
> AFAIK, end_job() will access FLTK drawing facility again, which is
> probably the cause why you are getting blocked UI again.
>
> Sanel
>
> On 01/
Have you tried to use locking described at:
http://www.fltk.org/doc-1.3/advanced.html?
AFAIK, end_job() will access FLTK drawing facility again, which is
probably the cause why you are getting blocked UI again.
Sanel
On 01/28/2013 07:51 PM, David Lopez wrote:
> Hi everybody,
> I have a multi-thr
Hi everybody,
I have a multi-thread FLTK 1.3 application on Win XP. The problem is that when
the application tries to print (using Fl_Printer) all threads get blocked
while the Windows printer selection dialog is open. In that case the method
Fl_Printer::start_job() was called from a callback
7 matches
Mail list logo