Winstep

Software Technologies


 Winstep Forums


Print view
Board index : Winstep Forums : General Discussion  [ 4 posts ]
Author Message
 Post subject: NextStart Hanging
PostPosted: Fri Jun 26, 2009 2:53 pm 
Offline

Joined: Wed Sep 12, 2007 5:24 pm
Posts: 140
I have been experiencing very frequent (10x per day) hangs of NextStart. Every one seems to occur when I have a floating task bar item with 2 or more instances of a program, with two or more miniviews up. If I do not move off one of the views quickly, the NextStart tries to highlight the window in question. If I then move the mouse, NextStart is usually hung.

The apps I am running are mostly communications software that I am writing and debugging, with a half-dozen tools also open.


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 26, 2009 3:36 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11936
NextSTART has the Peek windows feature, in which mousing over an highlighted window thumbnail, after a short pause, brings the associated window to the foreground, hiding all other windows.

To prevent an abrupt 'jump', this is done by fading out visible windows and fading in the target window.

There is a potential problem with this, though: if one of the windows is 'hang' (i.e. not responding) but not yet marked by the OS as such, NextSTART can hang as well until that window starts responding again.

Perhaps I can solve this by not relying in the OS so much and instead use SendMessageTimeout to see if a window is responding.

For now, give this theory a test by disabling the 'Window Peeking' feature (Tasklist and Systray Preferences tab).

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject:
PostPosted: Sat Jun 27, 2009 1:42 am 
Offline

Joined: Wed Sep 12, 2007 5:24 pm
Posts: 140
Good theory...test appears to be a success. No more hangs.

It is very likely that some of the programs NextStart was trying to "peek" were hung. I write very intricate multi-threaded communications applications and during debugging, they will hang. Since I have loads of programs open at any one time, I often go to the task bar to bring an open app out of minimized mode. If I accidentally cross the icon for the hung app.....

I would highly recommend an alternative way of doing your peek and letting your app hang. If hung apps are a problem, perhaps you should launch another thread to do whatever work you need to do to determine another app's state. If that thread hangs, your main app can time out and kill the "peek" thread, optionally report the error, and continue operating.


Back to top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 27, 2009 1:45 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11936
leerjet wrote:
I would highly recommend an alternative way of doing your peek and letting your app hang. If hung apps are a problem, perhaps you should launch another thread to do whatever work you need to do to determine another app's state. If that thread hangs, your main app can time out and kill the "peek" thread, optionally report the error, and continue operating.


And I would... if VB allowed multi-threaded applications. Alas, it does not. :cry:

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
Post new topic Reply to topic Board index : Winstep Forums : General Discussion  [ 4 posts ]
Display posts from previous:  Sort by  

Who is online

Users browsing this forum: No registered users and 269 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron