Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to move a Splitter control? Pin
Bog9-Dec-02 10:55
Bog9-Dec-02 10:55 
GeneralRe: How to move a Splitter control? Pin
leppie9-Dec-02 11:43
leppie9-Dec-02 11:43 
GeneralRe: How to move a Splitter control? Pin
Donald Blachly10-Dec-02 15:10
Donald Blachly10-Dec-02 15:10 
GeneralRe: How to move a Splitter control? Pin
Donald Blachly10-Dec-02 15:25
Donald Blachly10-Dec-02 15:25 
GeneralRe: How to move a Splitter control? Pin
Bog11-Dec-02 13:23
Bog11-Dec-02 13:23 
GeneralRe: How to move a Splitter control? Pin
Donald Blachly11-Dec-02 18:46
Donald Blachly11-Dec-02 18:46 
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 
I'm writing an app that will do things like display entries from the event log and a few other things. It cycles through 3 event logs, showing errors and warnings in a datagrid.

I was testing out the main app when I happened to have taskmanager (seen end note) open and saw that it was using 40+ meg for a program that was doing nothing really. This got me chasing down why it was using so much memory. So I reduce my program into a smaller set of features, with no add-on dll's and made a small test harness to log memory usage. This showed that on my win2k development server the program ran fine for an hour (<20 meg usage) but in the second hour it hit 40+ meg 3 times. I also ran it on my rc1 .net server and it show memory usage of 180+ meg in 30 mins. I then added in a check call the GC when the memory usage was over a fixed value (~16 meg) and logged whether this was called or not.

The logs showed that on my Win2k server the memory usage continued to climb even though the GC was called every tick of the timer. On my WInXP machine, the GC was called more frequently as time went on, but it stayed around the 16 meg limit.

Has anyone else seen something similar to this? It has frankly driven me up the wall so much I’ve put this project on hold while I write another app and hopefully find a fix for it.

Any one interested in helping or looking at the source, please contact me here or email me ( omega501@hotmail.com ) with a subject of "Request Source" so I don't delete it out of hand Smile | :)

Note: Taskmanager reports memory usage of running apps very badly. It doesn't show how much memory they are currently using, it shows how much it thinks the program will need ( I think). To verify this, open an app (word or similar, something big) and then open taskmanager, select the process tab and find the app you have just run. Select it (so it's easier to find) and then with task manager still open, minimize the app - I did this to MS Word and the memory usage went from 15 meg to 400k instantly - now I make all my .net apps check their own memory Smile | :)
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 
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 

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.