This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 请教一个关于定时器例程的问题。如果Timer Routine中的代码还没执行完,这时Timer又Expired又需要调用此例程,会产生什么结果呢?
-thanku99(仙游);
2005-5-19
(#2304286@0)
-
重入.
-647i(六不一没有);
2005-5-19
(#2304289@0)
-
如果这是个可重入函数,连续不断地重入 n 次之后会怎么样呢?
-thanku99(仙游);
2005-5-20
(#2305829@0)
-
nothing happens or stack overflow.
-canadiantire(轮胎-M.I.N.K.);
2005-5-20
(#2305843@0)
-
递归or Endless loop: check text book; Does VB support re-enter? 递归
-647i(六不一没有);
2005-5-20
(#2305854@0)
-
the safe way is in OnTimer(),
first KillTimer(), finish the job, the SetTimer() again.
-holdon(again);
2005-5-19
(#2304445@0)
-
at beginning of the function, set a static variable to 1. at the end if the function set it to 0. at the very begining of the function, check if the variale is 1, return immediately.
-647i(六不一没有);
2005-5-20
(#2305858@0)