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

C#

 
GeneralRe: Paint a region of a panel Pin
Anonymous15-Apr-05 1:35
Anonymous15-Apr-05 1:35 
GeneralRe: Paint a region of a panel Pin
Mathew Hall14-Apr-05 23:57
Mathew Hall14-Apr-05 23:57 
GeneralControl mustn't change it ForeColor to grey, when it is disabled Pin
Ptmk14-Apr-05 19:17
Ptmk14-Apr-05 19:17 
GeneralRe: Control mustn't change it ForeColor to grey, when it is disabled Pin
Alex Korchemniy14-Apr-05 20:20
Alex Korchemniy14-Apr-05 20:20 
GeneralRe: Control mustn't change it ForeColor to grey, when it is disabled Pin
spif200114-Apr-05 20:29
spif200114-Apr-05 20:29 
Generalwhere Pin
alexdg0414-Apr-05 19:15
alexdg0414-Apr-05 19:15 
GeneralRe: where Pin
Disrupted14-Apr-05 19:28
Disrupted14-Apr-05 19:28 
GeneralA question on garbage collection Pin
DisruptedSinner14-Apr-05 19:14
DisruptedSinner14-Apr-05 19:14 
Hello everyone,

I have a question on garbage collection that you guys will probably be able to answer in a snap. Here goes...

If I do this...

<br />
public void DoSomethingHere()<br />
{<br />
     MyCustomClass mcc = new MyCustomClass();<br />
     mcc.PerformFunction();<br />
<br />
     mcc = new MyCustomClass();<br />
     mcc.PerformAnotherFunction();<br />
}<br />


As you'll see above, mcc has performed a new twice. I'm just curious as to what happens to the memory from the first "new". Will the garbage collector know about it and clean it up later on, or is this considered a memory leak which will just sit in limbo?

Thanks,
~Brad
GeneralRe: A question on garbage collection Pin
spif200114-Apr-05 19:51
spif200114-Apr-05 19:51 
GeneralRe: A question on garbage collection Pin
Disrupted14-Apr-05 19:55
Disrupted14-Apr-05 19:55 
GeneralRe: A question on garbage collection Pin
Alex Korchemniy14-Apr-05 20:07
Alex Korchemniy14-Apr-05 20:07 
GeneralRe: A question on garbage collection Pin
Disrupted14-Apr-05 20:18
Disrupted14-Apr-05 20:18 
Generalautoesize or fit labels height Pin
alexdg0414-Apr-05 18:50
alexdg0414-Apr-05 18:50 
GeneralRe: autoesize or fit labels height Pin
Alex Korchemniy14-Apr-05 18:54
Alex Korchemniy14-Apr-05 18:54 
GeneralRe: autoesize or fit labels height Pin
alexdg0414-Apr-05 19:13
alexdg0414-Apr-05 19:13 
GeneralRe: autoesize or fit labels height Pin
Alex Korchemniy14-Apr-05 19:42
Alex Korchemniy14-Apr-05 19:42 
Generalminimize form while closeing Pin
alexdg0414-Apr-05 18:43
alexdg0414-Apr-05 18:43 
GeneralRe: minimize form while closeing Pin
Alex Korchemniy14-Apr-05 18:51
Alex Korchemniy14-Apr-05 18:51 
GeneralRe: minimize form while closeing Pin
Polis Pilavas15-Apr-05 4:45
Polis Pilavas15-Apr-05 4:45 
GeneralLog4Net - changing appender configuration programmatically... Pin
devvvy14-Apr-05 16:03
devvvy14-Apr-05 16:03 
Generalserialization problem with a class that derives from dataset Pin
god4k14-Apr-05 15:57
god4k14-Apr-05 15:57 
GeneralRe: serialization problem with a class that derives from dataset Pin
turbochimp14-Apr-05 16:33
turbochimp14-Apr-05 16:33 
GeneralRe: serialization problem with a class that derives from dataset Pin
god4k14-Apr-05 18:01
god4k14-Apr-05 18:01 
GeneralRe: serialization problem with a class that derives from dataset Pin
god4k14-Apr-05 18:41
god4k14-Apr-05 18:41 
QuestionHow to copy tables? Pin
ben214-Apr-05 13:18
ben214-Apr-05 13:18 

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.