一段时间后,应用程序需要很长时间才能打开对话框 [英] Application takes a long time to open a dialog after some time

查看:95
本文介绍了一段时间后,应用程序需要很长时间才能打开对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#应用程序中注意到了这种行为。就其本质而言,

应用程序主要最小化到托盘图标

一旦启动,应用程序就会正常响应。在

之后,当我双击托盘图标显示窗口或我

键入一个快捷方式来打开一个新对话框(其中还包含第三部分

控制)打开需要更长的时间(甚至3-5秒)。


那是怎么回事?有没有办法避免这种行为,并保持

应用程序始终提示。


谢谢。

Andrea

I noticed this behavior in a C# application. For its nature the
applications stays mainly minimized to the tray icons
As soon as it''s launched the application responds normally. After a
while, when I double click on the tray icon to show the window or I
type a shortcut to open a new dialog (which also contains third-part
controls) it takes much longer to open (even 3-5 seconds).

How is that? Is there a way to avoid this behavior and keep the
application always prompt.

Thanks.
Andrea

推荐答案

na***@community.nosp am< na ***@community.nospamwrote:
na***@community.nospam <na***@community.nospamwrote:

我在C#应用程序中注意到了这种行为。就其本质而言,

应用程序主要最小化到托盘图标

一旦启动,应用程序就会正常响应。在

之后,当我双击托盘图标显示窗口或我

键入一个快捷方式来打开一个新对话框(其中还包含第三部分

控制)打开需要更长的时间(甚至3-5秒)。


那是怎么回事?有没有办法避免这种行为,并始终提示

应用程序。
I noticed this behavior in a C# application. For its nature the
applications stays mainly minimized to the tray icons
As soon as it''s launched the application responds normally. After a
while, when I double click on the tray icon to show the window or I
type a shortcut to open a new dialog (which also contains third-part
controls) it takes much longer to open (even 3-5 seconds).

How is that? Is there a way to avoid this behavior and keep the
application always prompt.



多长时间一段时间?如果你在使用

应用程序时已经说了一个小时左右,它可能已被交换到磁盘。我不知道
不知道那个。


-

Jon Skeet - < sk *** @ pobox.com>
http://www.pobox.com/~skeet 博客: http://www.msmvps.com/jon.skeet

如果回复小组,请不要给我发邮件

How long is "a while"? If you''re talking an hour or so when the
application hasn''t been used, it''s probably been swapped to disk. I
don''t know any way round that.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


On Sun,2007年3月18日17:56:48 + 0800,Jon Skeet [C#MVP]< sk *** @ pobox.com>

写道:
On Sun, 18 Mar 2007 17:56:48 +0800, Jon Skeet [C# MVP] <sk***@pobox.com>
wrote:

多长时间了一会儿?如果你在使用

应用程序时已经说了一个小时左右,它可能已被交换到磁盘。我不知道这是多少钱。
How long is "a while"? If you''re talking an hour or so when the
application hasn''t been used, it''s probably been swapped to disk. I
don''t know any way round that.



嗯,有很多方法可以将应用程序保存在物理内存中,但是在大多数情况下这样做是不明智的。 :)

Well, there are ways to keep the application in physical memory, but it''s
not wise to do so in most situations. :)


只需显示一条显示消息或类似Outlook的通知(想法是从Outlook获得
,但我猜它的不同之处)。我们已经这样做了

表示App正试图再次加载,或者有消息表明...

VJ


< na *** @ community.nospamwrote in message

news:8k ************************* ******* @ 4ax.com ...
Just put up a display message or notification like Outlook does ( idea is
from Outlook, but I guess its different issue).. We have done that to
indicate saying App is trying to load again, or a message indicate that...
VJ

<na***@community.nospamwrote in message
news:8k********************************@4ax.com...

>我在C#应用程序中注意到了这种行为。就其本质而言,

应用程序主要最小化到托盘图标

一旦启动,应用程序就会正常响应。在

之后,当我双击托盘图标显示窗口或我

键入一个快捷方式来打开一个新对话框(其中还包含第三部分

控制)打开需要更长的时间(甚至3-5秒)。


那是怎么回事?有没有办法避免这种行为,并保持

应用程序始终提示。


谢谢。

Andrea
>I noticed this behavior in a C# application. For its nature the
applications stays mainly minimized to the tray icons
As soon as it''s launched the application responds normally. After a
while, when I double click on the tray icon to show the window or I
type a shortcut to open a new dialog (which also contains third-part
controls) it takes much longer to open (even 3-5 seconds).

How is that? Is there a way to avoid this behavior and keep the
application always prompt.

Thanks.
Andrea



这篇关于一段时间后,应用程序需要很长时间才能打开对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆