We help IT Professionals succeed at work.

Monitor Private bytes usage

591 Views
Last Modified: 2013-12-27
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?
Comment
Watch Question

evilrixSenior Software Engineer (Avast)
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I am using eVC++ to build my app and my program is runninng on a WM6 device so I dont think I can get Visual Studio to act as a remote debugger.  Or can I??

evilrixSenior Software Engineer (Avast)
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks,

Do you have any links or info on how to do this for an exe running on a WM6 device?

Author

Commented:
I will be using ActiveSync by the way.
evilrixSenior Software Engineer (Avast)
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
ok thanks
evilrixSenior Software Engineer (Avast)
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
>>Also consider debugging the app in an emulator. If it leaks, it will leak on the emulator.
OK I will try that also.

>>Also, isn't it time to port your project into Visual Studio 2005/2008?
Yes that is on my TO DO list.  I have tried to update it and I get loads and loads of errors and warnings.  I'll just have to take time out and do it some time.  (I dont have time at the moment)
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.