Memory in windows forms

C

Cor Ligthert

Hi John,

That shows the same as my testing, however I advice you to do a test with
visible of the controls is set to not true as well, otherwise you will maybe
think it is the add, while it is in my expirience not, however the paint.

Cor
 
J

Jon Skeet [C# MVP]

Cor Ligthert said:
That shows the same as my testing, however I advice you to do a test with
visible of the controls is set to not true as well, otherwise you will maybe
think it is the add, while it is in my expirience not, however the paint.

Well, making it visible or not may well have far more involved than
just whether or not it ends up being painted. I'm not terribly worried
about that level of detail - the main thing (to my mind, anyway) is why
the behaviour is different, and the key thing is that when added and
visible, garbage is being generated earlier, forcing more frequent
garbage collections.
 
C

Cor Ligthert

Hi Jon,

I can think of one thing, therefore I said painting, while the screen is
painted there is as far as I know some time, that the video processor is
busy, it would be clever to do than some garbage collection when there are
no other processes busy.

Cor
 

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

Top