My Windows mobile app is crashing after many hours use. I think it may be a memory leak. I one time found a memory leak on my PC application by monitoring the private bytes around a certain function call. I found that the private bytes usage would increase every time this function was called and eventually the app cashed.
How can I monitor the provate bytes usage in my windows mobile app, is there any c++ code to do this?