Thanks Antonio, I already tried with IupLoopStep, but one of the functions
I use take too long to finish to keep the GUI responsive. But I'm happy to
say that i found the problem with program, at the same time it's kind of
shameful for me, but just for future reference:
It turns out I was
Hi,
Sorry I don't have any example with threads to send you.
If your long processing is open, I mean, if you can insert a function
call inside the processing loop, then you can call IupLoopStep from inside
the loop to turn the user interface responsive while processing. In this
case no
Thanks, I'll give threads another try then, and concentrate on the pthread
api.
El vie., 28 dic. 2018 a las 5:59, Johann Philippe via Iup-users (<
iup-users@lists.sourceforge.net>) escribió:
> I think using threads is the right solution here. But be careful with
> those points :
> -it's
I think using threads is the right solution here. But be careful with those
points :-it's recommanded not to alloc memory inside the threads routine. It's
betterave allocating before threads runs. -if sole variables are acessed on
both threads at the same Time, it may crash. Then you should
Hi Dan,
I was able to get IUP to work in a threaded environment under Windows
but not Linux (Gtk) using Script BASIC.
John
On Fri, 2018-12-28 at 01:54 -0600, Daniel G. wrote:
> I have a program with a button that calls a function that can take
> some time to finish (up to 10 seconds). I need the