Click here to Skip to main content
15,914,413 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# MonoDevelop0.01 Ubuntu 6.06 Pin
Judah Gabriel Himango11-Aug-06 4:58
sponsorJudah Gabriel Himango11-Aug-06 4:58 
AnswerRe: C# MonoDevelop0.01 Ubuntu 6.06 [modified] Pin
User 665811-Aug-06 5:27
User 665811-Aug-06 5:27 
GeneralRe: C# MonoDevelop0.01 Ubuntu 6.06 Pin
StrayGrey11-Aug-06 23:11
StrayGrey11-Aug-06 23:11 
GeneralRe: C# MonoDevelop0.01 Ubuntu 6.06 [modified] Pin
User 665812-Aug-06 1:31
User 665812-Aug-06 1:31 
QuestionSocket implementation Pin
ventomito11-Aug-06 1:41
ventomito11-Aug-06 1:41 
AnswerRe: Socket implementation Pin
Stefan Troschuetz11-Aug-06 2:44
Stefan Troschuetz11-Aug-06 2:44 
QuestionFreeing resources ( forcing object destruction) [modified] Pin
abhijit pai11-Aug-06 1:35
abhijit pai11-Aug-06 1:35 
AnswerRe: Freeing resources ( forcing object destruction) Pin
Filip van der Meeren11-Aug-06 1:56
Filip van der Meeren11-Aug-06 1:56 
I personally find the .net framework sometimes a pain in the ass.
In languages like Object-Pascal you can simply free memory by calling FreeAndNil (theObject);
But in .net languages this isn't so easy. The only way i know is calling System.GC.Collect (0)
This collects all "garbage" that is created since the last garbage checkup.

But in your position i would call GC.Collect (GC.GetGeneration (MyObject));
Then you are sure that if your object isn't used anymore that you can collect it on this invoke.

But still, it isn't needed in .net, a call to collect is overhead for your computer. It will free up memory when it thinks it has to.

Don't you also love the code?

GeneralRe: Freeing resources ( forcing object destruction) Pin
abhijit pai11-Aug-06 4:57
abhijit pai11-Aug-06 4:57 
AnswerRe: Freeing resources ( forcing object destruction) Pin
Dave Kreskowiak11-Aug-06 4:54
mveDave Kreskowiak11-Aug-06 4:54 
GeneralRe: Freeing resources ( forcing object destruction) Pin
abhijit pai11-Aug-06 5:12
abhijit pai11-Aug-06 5:12 
GeneralRe: Freeing resources ( forcing object destruction) Pin
Filip van der Meeren11-Aug-06 6:25
Filip van der Meeren11-Aug-06 6:25 
GeneralRe: Freeing resources ( forcing object destruction) Pin
Dave Kreskowiak11-Aug-06 13:01
mveDave Kreskowiak11-Aug-06 13:01 
Questionhow to search given word in the word document Pin
ayyp11-Aug-06 1:11
ayyp11-Aug-06 1:11 
AnswerRe: how to search given word in the word document Pin
TheJudeDude16-Aug-06 14:22
TheJudeDude16-Aug-06 14:22 
QuestionDisable Mouse Pin
Rahul.RK11-Aug-06 0:26
Rahul.RK11-Aug-06 0:26 
AnswerRe: Disable Mouse Pin
stancrm11-Aug-06 1:50
stancrm11-Aug-06 1:50 
JokeRe: Disable Mouse Pin
Filip van der Meeren11-Aug-06 2:00
Filip van der Meeren11-Aug-06 2:00 
AnswerRe: Disable Mouse Pin
Thomas Stockwell12-Aug-06 11:54
professionalThomas Stockwell12-Aug-06 11:54 
QuestionGeneric MultiMap class / Set like the STL one... [modified] Pin
Florian Storck10-Aug-06 23:31
Florian Storck10-Aug-06 23:31 
QuestionSSL vs HTTPS Pin
Kamleshs10-Aug-06 22:56
Kamleshs10-Aug-06 22:56 
Answerspelling Pin
Ennis Ray Lynch, Jr.11-Aug-06 6:41
Ennis Ray Lynch, Jr.11-Aug-06 6:41 
AnswerRe: SSL vs HTTPS Pin
Dave Kreskowiak11-Aug-06 7:31
mveDave Kreskowiak11-Aug-06 7:31 
QuestionDump please! Pin
psamy10-Aug-06 22:53
psamy10-Aug-06 22:53 
AnswerRe: Dump please! Pin
Colin Angus Mackay10-Aug-06 22:57
Colin Angus Mackay10-Aug-06 22:57 

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.