What happens if I set Enable=True after GC of a timer

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

Suppose I have Designer add a Forms.Timer

Then in the code I Enable=True

Later I Enable=False

Later I Enable=True

While the timer is disabled it is subject to garbage collection.
If GC happened, what happens when I set Enable=True after GC.
 
**Developer** said:
Suppose I have Designer add a Forms.Timer

Then in the code I Enable=True

Later I Enable=False

Later I Enable=True

While the timer is disabled it is subject to garbage collection.

No, it isn't.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top