Click here to Skip to main content
15,906,301 members
Home / Discussions / C#
   

C#

 
GeneralConfused about Resources Pin
Alvaro Mendez3-Nov-03 8:28
Alvaro Mendez3-Nov-03 8:28 
GeneralRe: Confused about Resources Pin
scott373-Nov-03 12:44
scott373-Nov-03 12:44 
GeneralRe: Confused about Resources Pin
Alvaro Mendez3-Nov-03 17:03
Alvaro Mendez3-Nov-03 17:03 
GeneralEmbedding window in window Pin
CBoland3-Nov-03 8:21
CBoland3-Nov-03 8:21 
GeneralRe: Embedding window in window Pin
Douglas Troy4-Nov-03 6:37
Douglas Troy4-Nov-03 6:37 
GeneralObject Array in CompactFramework Pin
marcoscres3-Nov-03 6:40
marcoscres3-Nov-03 6:40 
GeneralHashtable as datasource Pin
Rob STS3-Nov-03 5:38
Rob STS3-Nov-03 5:38 
Generalcustomizing file open dialog... Pin
waleed riaz3-Nov-03 4:48
waleed riaz3-Nov-03 4:48 
GeneralRe: customizing file open dialog... Pin
Judah Gabriel Himango3-Nov-03 8:09
sponsorJudah Gabriel Himango3-Nov-03 8:09 
GeneralRe: customizing file open dialog... Pin
Alvaro Mendez3-Nov-03 9:07
Alvaro Mendez3-Nov-03 9:07 
GeneralRe: customizing file open dialog... Pin
waleed riaz3-Nov-03 18:15
waleed riaz3-Nov-03 18:15 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 18:50
J. Dunlap3-Nov-03 18:50 
GeneralRe: customizing file open dialog... Pin
waleed riaz3-Nov-03 19:03
waleed riaz3-Nov-03 19:03 
GeneralRe: customizing file open dialog... Pin
J. Dunlap3-Nov-03 19:44
J. Dunlap3-Nov-03 19:44 
GeneralCleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:29
Paul Evans3-Nov-03 3:29 
GeneralRe: Cleaning up Arrays in C# Pin
Nick Parker3-Nov-03 3:47
protectorNick Parker3-Nov-03 3:47 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 3:50
Paul Evans3-Nov-03 3:50 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 5:42
professionalJeff Varszegi3-Nov-03 5:42 
GeneralRe: Cleaning up Arrays in C# Pin
Nick Parker3-Nov-03 5:55
protectorNick Parker3-Nov-03 5:55 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 6:11
professionalJeff Varszegi3-Nov-03 6:11 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 6:09
Paul Evans3-Nov-03 6:09 
GeneralRe: Cleaning up Arrays in C# Pin
Eric Gunnerson (msft)3-Nov-03 10:10
Eric Gunnerson (msft)3-Nov-03 10:10 
A couple of comments:

1) The .NET image classes are a thin layer on top of unmanaged GDI+. You should definitely call Dispose() on them to free that data.

2) Look at the performance counters for .NET to see how much memory you are really using. Task manager is not a good indication of how much is really being used.

3) In general, you should try to avoid calling GC.Collect(). You may, however, want to call it and call GC.WaitForPendingFinalizers() for testing purposes. That will ensure that all the memory is reclaimed before you look at memory usage.

You might also want to try running the allocation profiler - it will give you a better idea of what your application is doing with memory.

http://www.gotdotnet.com/community/usersamples/Default.aspx?query=allocation%20profiler

GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 22:48
Paul Evans3-Nov-03 22:48 
GeneralRe: Cleaning up Arrays in C# Pin
Jeff Varszegi3-Nov-03 5:47
professionalJeff Varszegi3-Nov-03 5:47 
GeneralRe: Cleaning up Arrays in C# Pin
Paul Evans3-Nov-03 6:11
Paul Evans3-Nov-03 6:11 

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.