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

C#

 
AnswerRe: Initialize control dropped on form? Pin
Aryadip9-May-04 17:56
Aryadip9-May-04 17:56 
GeneralRe: Initialize control dropped on form? Pin
MilesAhead10-May-04 10:43
MilesAhead10-May-04 10:43 
AnswerRe: Initialize control dropped on form? Pin
MilesAhead13-May-04 11:43
MilesAhead13-May-04 11:43 
Generalwhich dll need to be imported to customize PrintPreviewDialog Pin
sachinkalse9-May-04 16:25
sachinkalse9-May-04 16:25 
GeneralRe: which dll need to be imported to customize PrintPreviewDialog Pin
Heath Stewart10-May-04 3:59
protectorHeath Stewart10-May-04 3:59 
GeneralRe: which dll need to be imported to customize PrintPreviewDialog Pin
sachinkalse12-May-04 21:05
sachinkalse12-May-04 21:05 
GeneralRe: which dll need to be imported to customize PrintPreviewDialog Pin
Heath Stewart13-May-04 2:30
protectorHeath Stewart13-May-04 2:30 
GeneralBeginInvoke Pin
Hugo Hallman9-May-04 12:50
Hugo Hallman9-May-04 12:50 
GeneralRe: BeginInvoke Pin
Heath Stewart10-May-04 3:57
protectorHeath Stewart10-May-04 3:57 
GeneralRe: BeginInvoke Pin
Hugo Hallman10-May-04 5:29
Hugo Hallman10-May-04 5:29 
GeneralRe: BeginInvoke Pin
Heath Stewart10-May-04 5:34
protectorHeath Stewart10-May-04 5:34 
GeneralEmail clients Pin
wfe9-May-04 12:13
wfe9-May-04 12:13 
GeneralRe: Email clients Pin
Dave Kreskowiak10-May-04 0:11
mveDave Kreskowiak10-May-04 0:11 
GeneralRe: Email clients Pin
wfe10-May-04 1:17
wfe10-May-04 1:17 
GeneralRe: Email clients Pin
Heath Stewart10-May-04 3:49
protectorHeath Stewart10-May-04 3:49 
GeneralRe: Email clients Pin
wfe10-May-04 7:59
wfe10-May-04 7:59 
GeneralRe: Email clients Pin
Heath Stewart10-May-04 8:58
protectorHeath Stewart10-May-04 8:58 
GeneralRe: Email clients Pin
wfe10-May-04 9:23
wfe10-May-04 9:23 
GeneralRe: Email clients Pin
Heath Stewart10-May-04 9:43
protectorHeath Stewart10-May-04 9:43 
GeneralRe: Email clients Pin
wfe11-May-04 3:00
wfe11-May-04 3:00 
GeneralRe: Email clients Pin
Heath Stewart11-May-04 3:12
protectorHeath Stewart11-May-04 3:12 
GeneralMemory Usage of a console application Pin
eranas9-May-04 10:25
eranas9-May-04 10:25 
Hi everybody,
please try to solve me a mysterious problem .
I opened a new C# console Application and I wrote this code in the Main function:
//-----------------------------------------
//Create new HashTable
Hashtable ht = new Hashtable(100000);

//Add 100,000 elements
for (int i =0 ; i < 100000 ; i++)
ht.Add(i.ToString() , i);

//wait for user
Console.Read();
//-----------------------------------------

Well then I opened the Task Manager and I saw that the memory usage of my app is about 14,256K, then I did something very simple, I just minimized the app and then restored to normal, then I took another look in the Task Manager and saw that the memory usage decreased to 132K.

Can you tell me why this happens?
GeneralRe: Memory Usage of a console application Pin
Jeff Varszegi9-May-04 12:11
professionalJeff Varszegi9-May-04 12:11 
GeneralRe: Memory Usage of a console application Pin
Heath Stewart10-May-04 3:39
protectorHeath Stewart10-May-04 3:39 
GeneralMouse Drag Event Pin
Member 6910899-May-04 7:15
Member 6910899-May-04 7:15 

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.