Microsoft Windows Vista Community Forums - Vistaheads
Recommended Download - Clean, repair and optimize your system



Welcome to the Microsoft Windows Vista Community Forums - Vistaheads, YOUR Largest Resource for Windows Vista related information.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so , join our community today!

If you have any problems with the registration process or your account login, please contact us.

Driver Scanner 2009 - Free Scan Now

Vista sets the "Application is not responding" state but the appis not crashing?

microsoft.public.windows.vista.general




Recommended Fix - Fix Vista Errors and Optimize Performance

Click On Your Flag for Translation
Simplified Chinese French Spanish Italian Portugeuse Japanese German Dutch
Driver Scanner 2009 - Free Scan Now
Reply
  #1 (permalink)  
Old 02-28-2007
MueMeister
 

Posts: n/a
Vista sets the "Application is not responding" state but the appis not crashing?
Hi guys,

I have an application which performs some tasks in a background
worker thread. If the app starts to export its data (which
takes up to 10 minutes) the GUI is getting pallid and the title
bar shows the ".. is not responding" state of my windows (which
is not true, since it is working correctly). In Windows XP
everything is fine.

1) Do I have to process certain messages in a new manner or maybe
I'm forced to process messages in Vista where in Windows XP has been
no need to do so?

2) I recognized that Vista performs this behavior really fast (lets say
after seconds). Is that a feature?

TIA
MueMeister
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-28-2007
David Hearn
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but theapp is not crashing?
MueMeister wrote:
> Hi guys,
>
> I have an application which performs some tasks in a background
> worker thread. If the app starts to export its data (which
> takes up to 10 minutes) the GUI is getting pallid and the title
> bar shows the ".. is not responding" state of my windows (which
> is not true, since it is working correctly). In Windows XP
> everything is fine.
>
> 1) Do I have to process certain messages in a new manner or maybe
> I'm forced to process messages in Vista where in Windows XP has been
> no need to do so?
>
> 2) I recognized that Vista performs this behavior really fast (lets say
> after seconds). Is that a feature?
>
> TIA
> MueMeister


Vista will detect things which cause the GUI to not refresh properly -
basically it has enhanced the application hang detection. Not updating
the GUI is classed as a hang I believe.

I guess, the answer is to modify your code to ensure that the GUI is
able to paint itself during the data export.

D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2007
Steve Cochran
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but the app is not crashing?
This "not responding" has always been a problem. Sure its not responding,
its busy. That doesn't mean its not working.

Its too bad they made it worse.

You might try some multithreading if its an issue, but I'm not a big fan of
such myself.

steve

"MueMeister" <mue@gmx.de> wrote in message
news:uKGZWpcHHHA.5104@TK2MSFTNGP03.phx.gbl...
> Hi guys,
>
> I have an application which performs some tasks in a background
> worker thread. If the app starts to export its data (which
> takes up to 10 minutes) the GUI is getting pallid and the title
> bar shows the ".. is not responding" state of my windows (which
> is not true, since it is working correctly). In Windows XP
> everything is fine.
>
> 1) Do I have to process certain messages in a new manner or maybe
> I'm forced to process messages in Vista where in Windows XP has been
> no need to do so?
>
> 2) I recognized that Vista performs this behavior really fast (lets say
> after seconds). Is that a feature?
>
> TIA
> MueMeister


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2007
Mike
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but the app is not crashing?
"MueMeister" <mue@gmx.de> wrote in message
news:uKGZWpcHHHA.5104@TK2MSFTNGP03.phx.gbl...
> 1) Do I have to process certain messages in a new manner or maybe
> I'm forced to process messages in Vista where in Windows XP has been
> no need to do so?


You just need to process events more often. If your data export is in a
loop, then put a DoEvents (or whatever call for your language) at the top of
the loop.

Mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2007
MueMeister
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but theapp is not crashing?
Thanks for Your answer Mike. It seems You experienced the
same issue?

I'll try it out.

MueMeister :-)

Mike wrote:
> "MueMeister" <mue@gmx.de> wrote in message
> news:uKGZWpcHHHA.5104@TK2MSFTNGP03.phx.gbl...
>
>> 1) Do I have to process certain messages in a new manner or maybe
>> I'm forced to process messages in Vista where in Windows XP has been
>> no need to do so?

>
>
> You just need to process events more often. If your data export is in
> a loop, then put a DoEvents (or whatever call for your language) at the
> top of the loop.
>
> Mike
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2007
MueMeister
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but theapp is not crashing?
David, Thanks for Your quick response :-)

David Hearn wrote:
> MueMeister wrote:
>
>> Hi guys,
>>
>> I have an application which performs some tasks in a background
>> worker thread. If the app starts to export its data (which
>> takes up to 10 minutes) the GUI is getting pallid and the title
>> bar shows the ".. is not responding" state of my windows (which
>> is not true, since it is working correctly). In Windows XP
>> everything is fine.
>>
>> 1) Do I have to process certain messages in a new manner or maybe
>> I'm forced to process messages in Vista where in Windows XP has been
>> no need to do so?
>>
>> 2) I recognized that Vista performs this behavior really fast (lets say
>> after seconds). Is that a feature?
>>
>> TIA
>> MueMeister

>
>
> Vista will detect things which cause the GUI to not refresh properly -
> basically it has enhanced the application hang detection. Not updating
> the GUI is classed as a hang I believe.
>
> I guess, the answer is to modify your code to ensure that the GUI is
> able to paint itself during the data export.
>
> D

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2007
Richard Urban
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but the app is not crashing?
Right Steve,

Many programs that "are not responding" will continue (or terminate
correctly) if you just leave them be.

It would have been nice if Microsoft could have tried harder to develop an
applet that could tell the difference between "busy/working" and "not
responding".

--


Regards,

Richard Urban
Microsoft MVP Windows Shell/User
(For email, remove the obvious from my address)

Quote from George Ankner:
If you knew as much as you think you know,
You would realize that you don't know what you thought you knew!


"Steve Cochran" <scochran@oehelp.com> wrote in message
news:AF8B2A87-9CEB-48C1-B712-720257583468@microsoft.com...
> This "not responding" has always been a problem. Sure its not responding,
> its busy. That doesn't mean its not working.
>
> Its too bad they made it worse.
>
> You might try some multithreading if its an issue, but I'm not a big fan
> of such myself.
>
> steve
>
> "MueMeister" <mue@gmx.de> wrote in message
> news:uKGZWpcHHHA.5104@TK2MSFTNGP03.phx.gbl...
>> Hi guys,
>>
>> I have an application which performs some tasks in a background
>> worker thread. If the app starts to export its data (which
>> takes up to 10 minutes) the GUI is getting pallid and the title
>> bar shows the ".. is not responding" state of my windows (which
>> is not true, since it is working correctly). In Windows XP
>> everything is fine.
>>
>> 1) Do I have to process certain messages in a new manner or maybe
>> I'm forced to process messages in Vista where in Windows XP has been
>> no need to do so?
>>
>> 2) I recognized that Vista performs this behavior really fast (lets say
>> after seconds). Is that a feature?
>>
>> TIA
>> MueMeister

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-28-2007
Steve Cochran
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but the app is not crashing?
DoEvents should be used as sparingly as possible, as it can really slow down
processes.

What I do when I have an iterative process is something like:

if i mod 1000 = 0 then
doevents
end if

But you do such at the peril of performance. I tell people to just leave
things alone and wait.

steve

"MueMeister" <mue@gmx.de> wrote in message
news:O$8f4BfHHHA.1044@TK2MSFTNGP02.phx.gbl...
> Thanks for Your answer Mike. It seems You experienced the
> same issue?
>
> I'll try it out.
>
> MueMeister :-)
>
> Mike wrote:
>> "MueMeister" <mue@gmx.de> wrote in message
>> news:uKGZWpcHHHA.5104@TK2MSFTNGP03.phx.gbl...
>>
>>> 1) Do I have to process certain messages in a new manner or maybe
>>> I'm forced to process messages in Vista where in Windows XP has been
>>> no need to do so?

>>
>>
>> You just need to process events more often. If your data export is in a
>> loop, then put a DoEvents (or whatever call for your language) at the top
>> of the loop.
>>
>> Mike
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-28-2007
David Hearn
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but theapp is not crashing?
Richard Urban wrote:
> Right Steve,
>
> Many programs that "are not responding" will continue (or terminate
> correctly) if you just leave them be.
>
> It would have been nice if Microsoft could have tried harder to develop an
> applet that could tell the difference between "busy/working" and "not
> responding".
>


Surely if *the GUI* is not responding and isn't repainting itself, then
it's "not responding" and is appropriate to mark it as such. Correcting
the app so that doesn't happen is the (technically) best solution.

D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-28-2007
Steve Cochran
 

Posts: n/a
Re: Vista sets the "Application is not responding" state but the app is not crashing?
I think the problem lies in that the user interprets "not responding" as
"not working anymore". So they endtask it. Maybe it should just say "busy"
instead.

steve

"David Hearn" <dave@NOswampieSPAM.org.uk> wrote in message
news:4ua1ubF178tipU1@mid.individual.net...
> Richard Urban wrote:
>> Right Steve,
>>
>> Many programs that "are not responding" will continue (or terminate
>> correctly) if you just leave them be.
>>
>> It would have been nice if Microsoft could have tried harder to develop
>> an applet that could tell the difference between "busy/working" and "not
>> responding".
>>

>
> Surely if *the GUI* is not responding and isn't repainting itself, then
> it's "not responding" and is appropriate to mark it as such. Correcting
> the app so that doesn't happen is the (technically) best solution.
>
> D


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning... Partition magic "hide" not compatible with Vista MicroFox microsoft.public.windows.vista.general 14 02-28-2007 19:59
"Calculating time remaining..." - my vote for Most Worthless Vista Dialog 2006 Oscar Fowler microsoft.public.windows.vista.general 6 02-28-2007 17:53
"Calculating time remaining..." - my vote for Most Worthless Vista Dialog 2006 Oscar Fowler microsoft.public.windows.vista.file management 2 02-28-2007 14:13
Vista error message "consent UI for...has stopped working" =?Utf-8?B?Um9iIE8=?= microsoft.public.windows.vista.administration accounts passwords 0 02-28-2007 14:13
How to make a "special" administrator in Vista? Dave R. microsoft.public.windows.vista.administration accounts passwords 1 02-28-2007 14:10




All times are GMT +1. The time now is 04:18.




Driver Scanner - Free Scan Now

Vistaheads.com is part of the Heads Network. See also XPHeads.com and Win7Heads.com.


Funny Commercials to make you laugh :-)

Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119