Hi,

Just a reminder: Don't forget the Model-View-Controller architecture for GUIs.
In a nutshell, all that means is you have an input, an output, and a bunch of
processing that has to be done between entering an input and displaying the
output. The input and the output are handled by the GUI (IUP in this case)
while the processing (the "Model") is handled by your application code. GUIs
do not require external multithreading to function, only the processing
portion may require multithreading, so if you want to thread an application,
don't ask the GUI to do it for you. Using IUP for multithreading your code is
not the appropriate place for that to happen. Let's not let IUP become a
victim of feature-itus nor add something that will make IUP less secure.

Best Regards,
Andrew

On 2018-04-19 at 5:26 AM, Ranier VF <ranier_...@hotmail.com> wrote:
>Hi,
>"IUP should not be the solution to every problem. It would be like
>incorporating a cross-platform C-runtime into IUP when that is the wrong
>approach. IUP is great as it is and for specialized problems it will never be
>able to beat a mature third party app, and right now my favorite app for the
>kinds of issues you are discussing is ØMQ (http://zeromq.org),  but I'm sure
>there are other apps out there that will do just fine."
>
>I think that IUP can be used in threads apps too. But.
>Without add framework, and extra bagage for this.
>Update GUI outside main thread, is very danger and can crash easily app.
>
>Gold rule, don't update GUI outside main thread!
>Use callbacks for this. Windows have a PostMessage function, that solves
>correctly this problem.
>
>IupPostMessage is welcome, but, whithout change behavior to non-threaded
>apps.
>
>Best Regards,
>Ranier Vilela


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to