[Kst] kst_hfi_calib_branch: kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Nov 12 21:52:54 CET 2004


On Friday 12 November 2004 15:12, Barth Netterfield wrote:
> How about an informative pop-up which just tells us what it is doing
> (loading vector INDEX, etc) rather than the whole interface...

  Actually I spent the rest of my time today trying to crash this code after 
the commit, and I couldn't.  Yes the user can do something stupid and make 
his plot not appear, but I think disabling DCOP and socket notifications does 
the trick for now.

   A popup is a weak solution if you ask me.  It requires event processing or 
painting still, it will stall, it will look frozen.  The real fix is to 
offload the data loading onto the thread the way it should be.  Then the main 
UI thread will have much less work, will be much more responsive, and well, 
it won't be confusing.  (There were lots of confused users here...)

   Ironically I'm much more convinced of this solution now than I was when I 
wrote it.  I figured I would find ways to crash it or cause inconsistencies, 
but I think it's actually quite stable, and will be very pleasant to use once 
the data loading is moved out of the UI thread.   Give it a try if you don't 
believe me...  The reentrancy guards and disabling of DCOP seem to have been 
the trick to making this safe.   Users here are impressed too.

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/



More information about the Kst mailing list