定时器对asp.net应用程序是否安全? [英] Are timers safe for asp.net apps?

查看:74
本文介绍了定时器对asp.net应用程序是否安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您好,


我的asp.net应用程序中需要一个计时器功能。我已经删除了在global.asax.cx上的IDE工具箱上可用的

计时器组件

设计器页面视图和dubble点击以包含它的代码和事件。


我第一次尝试运行代码导致aspnet_wp.exe挂起了一个

的大量内存。


我如何最好地完成这个(使用计时器)?

非常感谢


JB

解决方案

你想做什么?


你需要一个计时器服务器端还是客户端?


帕特里斯


-


" jensen bredal" < JE *********** @ yahoo.dk>一个écritdansle message de

新闻:eY **************** @ TK2MSFTNGP15.phx.gbl ...


您好,

我的asp.net应用程序中需要一个计时器功能。我在global.asax.cx设计器页面视图中删除了IDE工具箱上可用的
计时器组件,并点击了dubble以包含代码和事件
..
我第一次尝试运行代码导致aspnet_wp.exe挂起了大量内存。

如何最好地完成此操作(使用计时器)?

非常感谢

JB



听起来你正在使用System.Timers Timer,可以使用

服务器端,虽然有一些问题。


yoru代码有什么作用?计时器本身不应该导致挂起和内存问题。


-

Scott
http://www.OdeToCode.com/blogs/scott/


星期二,2005年5月3日16:25:50 +0200,jensen bredal

< je *********** @ yahoo没有自动跳转>写道:


您好,

我的asp.net应用程序中需要一个计时器功能。我在global.asax.cx
设计器页面视图中删除了IDE工具箱上可用的
计时器组件,并点击了dubble以包含代码和事件。

我第一次尝试运行代码导致aspnet_wp.exe挂起了大量的内存。

我如何最好地完成这个(使用计时器)?

非常感谢

JB




需要服务器端计时器。



Hello,

I need a timer functionality in my asp.net app. I have dropped the
timer component available on the toolbox of the IDE on global.asax.cx
designer page view and dubble clicked to include the code and event for it .

My first attempt to run the code resulted in aspnet_wp.exe hanging with a
huge amount of memory.

How do i best accomplish this(use the timer)?
many thanks

JB

解决方案

What do you want to do ?

Do you need a timer server side or client side ?

Patrice

--

"jensen bredal" <je***********@yahoo.dk> a écrit dans le message de
news:eY****************@TK2MSFTNGP15.phx.gbl...


Hello,

I need a timer functionality in my asp.net app. I have dropped the
timer component available on the toolbox of the IDE on global.asax.cx
designer page view and dubble clicked to include the code and event for it ..
My first attempt to run the code resulted in aspnet_wp.exe hanging with a
huge amount of memory.

How do i best accomplish this(use the timer)?
many thanks

JB



It sounds like you are using a System.Timers Timer, which is ok to use
server side, although there are some gotchas.

What does yoru code do? The timer itself should not cause hangs and
memory problems.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 3 May 2005 16:25:50 +0200, "jensen bredal"
<je***********@yahoo.dk> wrote:


Hello,

I need a timer functionality in my asp.net app. I have dropped the
timer component available on the toolbox of the IDE on global.asax.cx
designer page view and dubble clicked to include the code and event for it .

My first attempt to run the code resulted in aspnet_wp.exe hanging with a
huge amount of memory.

How do i best accomplish this(use the timer)?
many thanks

JB




need server side timer.


这篇关于定时器对asp.net应用程序是否安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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