Click here to Skip to main content
14,881,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends,

I have developed an application in WPF with C#. The application includes a third party dll for displaying the camera in a particular window.

Normally the application takes the memory 90 MB - 135 MB without camera object (Unmanaged object). i.e I removed all the code reagrding the camera object in the design and code page (xaml and xaml.cs). The memory increasing and stops at one max value.

If I use the camera object in the application, the memory is increasing gradually. When I open the camera window every time, the memory will be increased gradually like 135 MB 141 MB, 143 MB....

I have used GC.Collect and the Using statement for all necessary place to clear the managed memory. I am not able to reduce or stop the memory increasing.

How to solve this issue?

Any suggestions will appreciate

Thanks in advance.
Posted

1 solution

Obviously there is a memory leak in the third party component you are using.

I would suggest you contact them and have them look into the matter, as there is very little we can do for you here.

Having said that try using a memory profiler to see where exactly you are leaking memory, that could help you also.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900