views:

19

answers:

1

I have a wrapper managed application(.net) over a COM Component(created using vb6) where Com component also uses native c++ dll.

Aplication runs as a background process and is supposed to run continously 24 X 7. The application runs fine for certain time, but after certain time it crashes. Possible reasons might be momory leak in c++ dll or com component.There is a lot of code for COM and c++ dll's.

Since i am not familiar with com and c++, i am trying to resolve the problem from managed application. I am thinking for resolving this way : if the managed application starts consuming a lot of memory then i will restart my managed application.

1) How can we programatically monitor the total memory used by application (managed + unmanaged).

2) Would restarting the managed application also free up the unmanaged resources.

3) Is there any other alternative approach.

4) what are best debugging tools for monitoring managed application which also used unmanaged resources.

If i am not clear in my explanation then do ask me again.

Any help will be greatly appreciated.

A: 
Richard