Re: GUI is non-responsive during a long database interaction

Liste des GroupesRevenir à cl tcl 
Sujet : Re: GUI is non-responsive during a long database interaction
De : (at) *nospam* ednolan (ted@loft.tnolan.com (Ted Nolan)
Groupes : comp.lang.tcl
Date : 06. Mar 2025, 22:15:54
Autres entêtes
Organisation : loft
Message-ID : <m2uhkaFc9l6U1@mid.individual.net>
References : 1 2
User-Agent : trn 4.0-test76 (Apr 2, 2001)
In article <vqcudn$346r4$1@dont-email.me>, Rich  <rich@example.invalid> wrote:
Alan Grunwald <nospam.nurdglaw@gmail.com> wrote:
In the meantime, I tried to execute the database interaction in a
separate thread (?) by running it as an [after idle] script but this
didn't have the desired effect
>
An after idle script is not a "separate thread", as you've now
discovered.
>
For real threads, use the 'thread' extension:
>
https://www.tcl-lang.org/man/tcl/ThreadCmd/thread.htm
>

Alternately you could send the queries to a seperate process
connected by a pipe and use I/O fileevents to keep your main process
from blocking.
--
columbiaclosings.com
What's not in Columbia anymore..

Date Sujet#  Auteur
6 Mar 25 * GUI is non-responsive during a long database interaction4Alan Grunwald
6 Mar 25 +* Re: GUI is non-responsive during a long database interaction2Rich
6 Mar 25 i`- Re: GUI is non-responsive during a long database interaction1ted@loft.tnolan.com (Ted Nolan
6 Mar 25 `- Re: GUI is non-responsive during a long database interaction1et99

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal