Freeing up memory-VB.Net?

Christopher Liu

New member
Hello Sir/Madam,
I am a relatively new VB.Net user and new into programming/coding (4months ish).
Currently I am making an application that calculates a profit margin for 3-4 values. I assign these values to variables, and use a class to calculate the old profit, new profit, and difference. I use a class because I need the same formula across multiple forms.
Currently, the only thing that I don't like is it starts getting greedy with memory. It starts off at a modest 7k kb but after a few calculations it can go up to 20k kb. I have attempted to put in a button on form1 which does form.dispose() for all other forms, but I see no difference in the task manager in terms of memory when I do so.
How can I make it so that the memory used won't keep building up?
 
Back
Top