datatec
2008-May-23 16:16 UTC
[fxruby-users] problem with non-focused fxruby gui freezing or blanking out.
I find that when a running fxruby program looses focus or another window is placed in front of it, when the fxruby window regains focus, many times the gui is now frozen or blank. This seems to happen especially frequently when the window covering it is a java or fox based application. Usually it comes back but sometimes it takes several minutes to do so. I would really like to find someway to stop this from occurring. A good of this is a program I have that parses a large csv file and while the processing taking place it updates a progress bar. once the window looses focus frequently the progress bar and labels do not update again until the process is complete. I have a general idea why this occurs, but don''t really know how to stop it. -- View this message in context: http://www.nabble.com/problem-with-non-focused-fxruby-gui-freezing-or-blanking-out.-tp17428155p17428155.html Sent from the FXRuby Users mailing list archive at Nabble.com.
Vladimir Konrad
2008-May-23 17:02 UTC
[fxruby-users] problem with non-focused fxruby gui freezing or blanking out.
> A good of this is a program I have that parses a large csv fileSounds like you need to do the lengthy processing in "chore"... Vlad Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm
Lyle Johnson
2008-May-23 18:07 UTC
[fxruby-users] problem with non-focused fxruby gui freezing or blanking out.
On Fri, May 23, 2008 at 12:02 PM, Vladimir Konrad <v.konrad at lse.ac.uk> wrote:> Sounds like you need to do the lengthy processing in "chore"...Probably belongs in a thread, but if there''s a way to sensibly do it in a chore, that would be OK too.
Philippe Lang
2008-May-26 06:13 UTC
[fxruby-users] problem with non-focused fxruby gui freezing or blanking out.
fxruby-users-bounces at rubyforge.org wrote:> I find that when a running fxruby program looses focus or another > window is placed in front of it, when the fxruby window regains > focus, many times the gui is now frozen or blank. > > This seems to happen especially frequently when the window covering > it is a java or fox based application. > > Usually it comes back but sometimes it takes several minutes to do so. > > > I would really like to find someway to stop this from occurring. > > > A good of this is a program I have that parses a large csv file and > while the processing taking place it updates a progress bar. once the > window looses focus frequently the progress bar and labels do not > update again until the process is complete. > > I have a general idea why this occurs, but don''t really know how to > stop it.Hi, Does a call to FXApp.disableThreads before FXApp.create help maybe? Philippe
Lyle Johnson
2008-May-26 15:32 UTC
[fxruby-users] problem with non-focused fxruby gui freezing or blanking out.
On May 26, 2008, at 1:13 AM, Philippe Lang wrote:> Does a call to FXApp.disableThreads before FXApp.create help maybe?Granted, we don''t know a lot about this particular case yet, but I''m guessing that that''s not the problem. It is true that when FXRuby''s support for threads is enabled, you''ll see a bit of a performance hit (whenever FXRuby allocates some time to Ruby''s thread scheduler) but it shouldn''t ever just completely lock up the system like this. --- "FXRuby: Create Lean and Mean GUIs with Ruby" Now available from the Pragmatic Bookshelf! http://www.pragprog.com/titles/fxruby