Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
QuestionCollection of stuct object - does the GC will run ? Pin
Yanshof24-Aug-10 2:20
Yanshof24-Aug-10 2:20 
AnswerRe: Collection of stuct object - does the GC will run ? Pin
Ian Shlasko24-Aug-10 2:43
Ian Shlasko24-Aug-10 2:43 
GeneralRe: Collection of stuct object - does the GC will run ? Pin
Łukasz Nowakowski24-Aug-10 2:57
Łukasz Nowakowski24-Aug-10 2:57 
GeneralRe: Collection of stuct object - does the GC will run ? Pin
Paul Michalik24-Aug-10 23:01
Paul Michalik24-Aug-10 23:01 
AnswerRe: Collection of stuct object - does the GC will run ? Pin
Luc Pattyn24-Aug-10 2:56
sitebuilderLuc Pattyn24-Aug-10 2:56 
AnswerRe: Collection of stuct object - does the GC will run ? Pin
johannesnestler24-Aug-10 4:29
johannesnestler24-Aug-10 4:29 
GeneralRe: Collection of struct object - does the GC will run ? Pin
Yanshof24-Aug-10 5:03
Yanshof24-Aug-10 5:03 
GeneralRe: Collection of struct object - does the GC will run ? Pin
johannesnestler24-Aug-10 22:12
johannesnestler24-Aug-10 22:12 
@1: Don't worry, as long as you keep a reference to your data GC will not free any memory. I don't understand how you can "loose data" because of the GC? If you loose your reference to the data, it's lost anyway...
@2: Maybe here's the root of your perfomance problems? Depends on what you are doing with your collection...
Think about your application architecture (Maybe you don't have to hold all this items in memory?)
@3: Coming from years of manual memory handling with C/C++, and using .NET now since Version 1.0, I can tell you there were hardly any circumstances when I wanted to handle the
memory allocation/freeing for myself again. From my view the GC works pretty perfect, and the best thing: You don't have to know much about it. Whenever I ran into memory-related performance problems it was because of wired requirements or bad designed application architecture. First make shure you got this right, and if memory-handling is still the problem you may want to do some tricks with "unsafe" or "native code", at least the critical parts? Or use some other technics like memory-mapped-file etc. (do a search here on codeproject)
QuestionString Extraction Pin
NaveenHS23-Aug-10 20:39
NaveenHS23-Aug-10 20:39 
AnswerRe: String Extraction PinPopular
Richard MacCutchan23-Aug-10 21:15
mveRichard MacCutchan23-Aug-10 21:15 
GeneralRe: String Extraction Pin
NaveenHS24-Aug-10 1:13
NaveenHS24-Aug-10 1:13 
AnswerRe: String Extraction Pin
Luc Pattyn24-Aug-10 0:59
sitebuilderLuc Pattyn24-Aug-10 0:59 
AnswerRe: String Extraction Pin
Ravi Bhavnani24-Aug-10 8:18
professionalRavi Bhavnani24-Aug-10 8:18 
AnswerRe: String Extraction Pin
AspDotNetDev24-Aug-10 10:26
protectorAspDotNetDev24-Aug-10 10:26 
QuestionWould I be cheating if I... (An XNA/Game dev question) Pin
venomation23-Aug-10 8:48
venomation23-Aug-10 8:48 
AnswerMessage Closed Pin
23-Aug-10 12:42
_beauw_23-Aug-10 12:42 
GeneralRe: Would I be cheating if I... (An XNA/Game dev question) Pin
venomation23-Aug-10 12:49
venomation23-Aug-10 12:49 
AnswerRe: Would I be cheating if I... (An XNA/Game dev question) Pin
CDP180224-Aug-10 3:45
CDP180224-Aug-10 3:45 
AnswerRe: Would I be cheating if I... (An XNA/Game dev question) Pin
ely_bob24-Aug-10 3:58
professionalely_bob24-Aug-10 3:58 
QuestionHow can I turn on a computer when it is truned off ? Pin
jojoba201123-Aug-10 8:15
jojoba201123-Aug-10 8:15 
AnswerRe: How can I turn on a computer when it is truned off ? PinPopular
Pete O'Hanlon23-Aug-10 8:20
mvePete O'Hanlon23-Aug-10 8:20 
GeneralRe: How can I turn on a computer when it is truned off ? Pin
Frank Fajardo24-Aug-10 15:16
Frank Fajardo24-Aug-10 15:16 
AnswerRe: How can I turn on a computer when it is truned off ? PinPopular
OriginalGriff23-Aug-10 8:23
mveOriginalGriff23-Aug-10 8:23 
AnswerRe: How can I turn on a computer when it is truned off ? PinPopular
#realJSOP23-Aug-10 8:27
mve#realJSOP23-Aug-10 8:27 
AnswerRe: How can I turn on a computer when it is truned off ? PinPopular
Yusuf23-Aug-10 8:28
Yusuf23-Aug-10 8:28 

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.