Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to move a Splitter control? Pin
Dominique Plante6-Mar-03 7:54
Dominique Plante6-Mar-03 7:54 
GeneralProblems with a memory leak Pin
Omega5017-Dec-02 11:10
Omega5017-Dec-02 11:10 
GeneralRe: Problems with a memory leak Pin
Burt Harris7-Dec-02 15:17
Burt Harris7-Dec-02 15:17 
GeneralRe: Problems with a memory leak Pin
Omega5017-Dec-02 16:27
Omega5017-Dec-02 16:27 
GeneralRe: Problems with a memory leak Pin
Burt Harris8-Dec-02 11:42
Burt Harris8-Dec-02 11:42 
GeneralRe: Problems with a memory leak Pin
Omega5019-Dec-02 10:52
Omega5019-Dec-02 10:52 
GeneralRe: Problems with a memory leak Pin
Burt Harris9-Dec-02 21:28
Burt Harris9-Dec-02 21:28 
GeneralRe: Problems with a memory leak Pin
Omega50111-Dec-02 22:14
Omega50111-Dec-02 22:14 
I added in the .Refresh() and the memory usage started changing like it used to. Seeing this, I left it running for a few hours and after 7+ hours, the memory usage has a peak of 110 meg (set 5 mins ago), a current memory of 60 meg, and it never dropped below its initial value of 20 meg since the app started.

The main memory usage seems to occur when reading the event log, as when it is checking cpu usage the memory changes a small amount (~100k) but seems stable. It seems to be having problems when reading the event log into a datatable and then displaying that in a datagrid.

It also seems, since I made the Process object static, that a) initial memory usage has jumped (from 10 meg to 20 meg), and that peak memory usage has doubled as well (previously it peaked around 40 - 50 meg, now it's 110 meg).

I am not talking about a lot of data being stored in memory consistently - the datatable has a max of 10 records, and I clear the datatable at the beggining of each loop through the current log (cycling through system, security, application logs every 10 secs for testing purposes).

Is it the Process that is using up so much memory? - I call the p.WorkingSet every 2 secs currently, but now I am only calling the
Refresh(), not creating a new instance of the object. Is there a more "light weight" way of checking the memory usage of a the current app? Maybe calling the Process object is itself causing the high memory usage?
GeneralRe: Problems with a memory leak Pin
David Stone8-Dec-02 5:56
sitebuilderDavid Stone8-Dec-02 5:56 
GeneralRe: Problems with a memory leak Pin
Burt Harris8-Dec-02 10:50
Burt Harris8-Dec-02 10:50 
GeneralRe: Problems with a memory leak Pin
David Stone8-Dec-02 17:09
sitebuilderDavid Stone8-Dec-02 17:09 
GeneralEndDialog Pin
peterchen7-Dec-02 10:02
peterchen7-Dec-02 10:02 
GeneralRe: EndDialog Pin
Burt Harris7-Dec-02 10:13
Burt Harris7-Dec-02 10:13 
GeneralRe: EndDialog Pin
peterchen7-Dec-02 10:47
peterchen7-Dec-02 10:47 
Generalplz ans these Pin
imran_rafique7-Dec-02 9:23
imran_rafique7-Dec-02 9:23 
GeneralRe: plz ans these Pin
Burt Harris7-Dec-02 10:02
Burt Harris7-Dec-02 10:02 
GeneralCustom TextBox Drawing Pin
mikasa7-Dec-02 8:13
mikasa7-Dec-02 8:13 
GeneralRe: Custom TextBox Drawing Pin
Burt Harris7-Dec-02 10:05
Burt Harris7-Dec-02 10:05 
GeneralRe: Custom TextBox Drawing Pin
mikasa9-Dec-02 2:21
mikasa9-Dec-02 2:21 
GeneralInternet Connection Pin
Mazdak7-Dec-02 5:34
Mazdak7-Dec-02 5:34 
GeneralRe: Internet Connection Pin
mikasa7-Dec-02 8:15
mikasa7-Dec-02 8:15 
GeneralRe: Internet Connection Pin
leppie8-Dec-02 2:53
leppie8-Dec-02 2:53 
GeneralRe: Internet Connection Pin
Mazdak8-Dec-02 3:24
Mazdak8-Dec-02 3:24 
GeneralRe: Internet Connection Pin
leppie8-Dec-02 3:34
leppie8-Dec-02 3:34 
Generalprocess and network path Pin
imran_rafique7-Dec-02 0:33
imran_rafique7-Dec-02 0:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.