Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

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

Reply
 
Old 12-12-2006   #1 (permalink)
MueMeister


 
 

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

My System SpecsSystem Spec
Old 12-12-2006   #2 (permalink)
David Hearn


 
 

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
My System SpecsSystem Spec
Old 12-12-2006   #3 (permalink)
Steve Cochran


 
 

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


My System SpecsSystem Spec
Old 12-12-2006   #4 (permalink)
Mike


 
 

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

My System SpecsSystem Spec
Old 12-12-2006   #5 (permalink)
MueMeister


 
 

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
>

My System SpecsSystem Spec
Old 12-12-2006   #6 (permalink)
MueMeister


 
 

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

My System SpecsSystem Spec
Old 12-12-2006   #7 (permalink)
Richard Urban


 
 

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

>



My System SpecsSystem Spec
Old 12-12-2006   #8 (permalink)
Steve Cochran


 
 

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
>>


My System SpecsSystem Spec
Old 12-13-2006   #9 (permalink)
David Hearn


 
 

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
My System SpecsSystem Spec
Old 12-13-2006   #10 (permalink)
Steve Cochran


 
 

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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Vista puts "Not responding" box over my application always General Discussion
VS 2003: "Start Application" disabled in "Debugging" .NET General
SP1 doesn't fix "Windows Explorer has stopped responding." Ready toput my fista through vista! Vista General
What to do to access "Local Settings" and "Application Data"? Vista account administration
"Save As" amd "Open" Not Responding Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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