Click here to Skip to main content
15,899,937 members
Home / Discussions / C#
   

C#

 
GeneralRe: Looking for samples how to write an IRC client in C# Pin
leppie9-Dec-02 8:18
leppie9-Dec-02 8:18 
GeneralTreeView Context menus Pin
Dave Kerr8-Dec-02 5:36
Dave Kerr8-Dec-02 5:36 
GeneralRe: TreeView Context menus Pin
leppie8-Dec-02 9:58
leppie8-Dec-02 9:58 
Generaltotal beginner Pin
GaryR8-Dec-02 1:13
GaryR8-Dec-02 1:13 
GeneralRe: total beginner Pin
joan_fl8-Dec-02 2:18
joan_fl8-Dec-02 2:18 
GeneralRe: total beginner Pin
GaryR8-Dec-02 4:15
GaryR8-Dec-02 4:15 
Generalresource bitmap to imagelist Pin
peterchen8-Dec-02 0:10
peterchen8-Dec-02 0:10 
GeneralRe: resource bitmap to imagelist Pin
Jon Rista8-Dec-02 13:51
Jon Rista8-Dec-02 13:51 
GeneralCollections and the Collection Editor Pin
Dave Kerr7-Dec-02 23:57
Dave Kerr7-Dec-02 23:57 
GeneralRe: Collections and the Collection Editor Pin
leppie8-Dec-02 0:50
leppie8-Dec-02 0:50 
GeneralRe: Collections and the Collection Editor Pin
Dave Kerr8-Dec-02 2:12
Dave Kerr8-Dec-02 2:12 
GeneralRead Only Database in C# Pin
europria7-Dec-02 21:16
europria7-Dec-02 21:16 
QuestionHow to move a Splitter control? Pin
Bog7-Dec-02 18:34
Bog7-Dec-02 18:34 
AnswerRe: How to move a Splitter control? Pin
Donald Blachly8-Dec-02 6:24
Donald Blachly8-Dec-02 6:24 
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 
GeneralRe: Problems with a memory leak Pin
Burt Harris7-Dec-02 15:17
Burt Harris7-Dec-02 15:17 
In my experience, calling GC.Collect() is always a bad idea. It throws of the heuristics the garbage collector uses, and ends up costing you performance because it artificially advances objects into higher generations.

I'd suggest you apply the Allocation Profiler to find out if you've got managed memory problem. This tool is great.

Note that if you've got code using COM interop or P/Invoke, it possible that you've got a classic memory leak. Instead of using the task manager to monitor memory, you can use perfmon. Use the Process object's Virtual Memory, Private Bytes, and Working Set counters on your process, which show overall numbers, then add the ".NET CLR Memory" counter named "# Bytes in all heaps" for you process. If they both grow, your probably holding on to managed memory too long, if just the process ones grow, its unmanaged memory.


Burt Harris
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 

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.