Advertisement

03.30.2008 at 06:19AM PDT, ID: 23280662
[x]
Attachment Details

Memory Usage and CPU Usage problem in c# console application

Asked by SHAHEEN_AKHTAR in Microsoft Visual C#.Net, Microsoft Development

Tags: c#

I have developed an console application (Visual Studio 2005 c#), that gets the rssfeeds  urls from database, downloads the Rss and Extracts the information and save to database. This application is designed to run in an infinite loop [while (true) ] so that it runs round the clock. Now the problem is  after running for some time, task manager shows the memory usage, handles, user objects increases continuously. CPU usage is betweeb 25-50% (by the application).  I have implemented IDisposable interface for a class and tested. memory usage is constant but, cpu usage remains the same. Due to continuous increase in memory usage and handles, I get "unable to create windows handle" message.

Kindly help me to tackle this issue and suggest tips on writing classes.

Help also required to handle COM DLLs like MSHTML and their disposing.

ThanksStart Free Trial
 
Loading Advertisement...
 
[+][-]03.30.2008 at 07:53AM PDT, ID: 21240888

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 02:07AM PDT, ID: 21357044

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.17.2008 at 05:24PM PDT, ID: 21382491

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Microsoft Development
Tags: c#
Sign Up Now!
Solution Provided By: BillyDvD
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628