new command fixing memory leak.
So i have been able to fix memory leak on Windows and forms but cant figure out how todo it with pages.
So i am calling specific pages to show inside a frame on button press. Upon changing pages you end up keeping the memory used instead of clearing the data.
Any ideas? Thanks
4 Replies
on what basis do you think you have a memoryleak here
when i switch pages back and forth my memory usage keeps going up
VS wont let me add a to it
I have tried before it calles the new page but that dont do anything.
well first,
the garbagecollector collects in batches.. meaning you would have to add quite a few instances before it really frees the ram (or wait long enough)
second, the memory leak might be inside page1/page2 class and has nothing to do with view switching.. but there is too little info
ok thank you