Click here to Skip to main content
13,198,465 members (61,315 online)
Rate this:
Please Sign up or sign in to vote.
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 9-Oct-11 21:14pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 10 Oct 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100