I'd like to know if someone has any tips or articles about optimizing .net apps. I have an app that takes about 30 megs of ram at startup and loading the mainform, which seems quite "normal" to vb.net apps.
I call GC.Collect() everytime a mdi-form is loaded, and closed too. This has no or just a bit effect to the RAM usage.
I have Crystal Reports in this app too. Loading the CR viewer makes the ram usage go sky high, about 50-60 megs. Closing the form has no effect, the app uses that 50-60 megs even when there are no mdi-forms opened.
The interesting this is, that if I minimize the app to taskbar and bring it up again, mem usage goes as low as 3 megs. It piles up a little but not significantly. What does Windows (xp) do to free that memory? Can I do the same thing via vb-code?
Any hints greatly appreciated,
Tutuster
I call GC.Collect() everytime a mdi-form is loaded, and closed too. This has no or just a bit effect to the RAM usage.
I have Crystal Reports in this app too. Loading the CR viewer makes the ram usage go sky high, about 50-60 megs. Closing the form has no effect, the app uses that 50-60 megs even when there are no mdi-forms opened.
The interesting this is, that if I minimize the app to taskbar and bring it up again, mem usage goes as low as 3 megs. It piles up a little but not significantly. What does Windows (xp) do to free that memory? Can I do the same thing via vb-code?
Any hints greatly appreciated,
Tutuster