Click here to Skip to main content
15,889,403 members
Home / Discussions / C#
   

C#

 
AnswerRe: Talk Over Mic To Remote PCs Pin
jschell13-Apr-19 6:21
jschell13-Apr-19 6:21 
QuestionHow instantly free up the memory for List<T> & DataSet Pin
Mou_kol11-Apr-19 9:42
Mou_kol11-Apr-19 9:42 
AnswerRe: How instantly free up the memory for List<T> & DataSet Pin
Luc Pattyn11-Apr-19 11:56
sitebuilderLuc Pattyn11-Apr-19 11:56 
GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
Mou_kol14-Apr-19 1:29
Mou_kol14-Apr-19 1:29 
GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
Luc Pattyn14-Apr-19 2:25
sitebuilderLuc Pattyn14-Apr-19 2:25 
AnswerRe: How instantly free up the memory for List<T> & DataSet Pin
Gerry Schmitz11-Apr-19 13:43
mveGerry Schmitz11-Apr-19 13:43 
GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
josda100011-Apr-19 15:38
josda100011-Apr-19 15:38 
AnswerRe: How instantly free up the memory for List<T> & DataSet Pin
OriginalGriff11-Apr-19 20:11
mveOriginalGriff11-Apr-19 20:11 
In practice, TrimExcess does nothing to "free memory" - look at the Reference Sources if you aren't sure: Reference Source[^]
You will find that in effect all it does is set the internal array to an empty array, it doesn't do anything "fancy" with the memory it no longer wants. Indeed, if you use TrimExcess to set a smaller size to the internal array, it will use more memory to do that, not less!

Don't mess with the GC - leave it alone and let it come in when it needs to. The best way to free memory is to set all references to the object to null and let the memory management handle it in it's own time. It's probably a lot better than you are at doing this! Laugh | :laugh:
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
Mou_kol14-Apr-19 1:33
Mou_kol14-Apr-19 1:33 
GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
OriginalGriff14-Apr-19 1:41
mveOriginalGriff14-Apr-19 1:41 
AnswerRe: How instantly free up the memory for List<T> & DataSet Pin
#realJSOP12-Apr-19 3:16
mve#realJSOP12-Apr-19 3:16 
GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
Mou_kol14-Apr-19 1:36
Mou_kol14-Apr-19 1:36 
GeneralRe: How instantly free up the memory for List<T> & DataSet Pin
#realJSOP16-Apr-19 1:40
mve#realJSOP16-Apr-19 1:40 
AnswerRe: How instantly free up the memory for List<T> & DataSet Pin
jschell13-Apr-19 6:35
jschell13-Apr-19 6:35 
AnswerRe: How instantly free up the memory for List<T> & DataSet Pin
Dave Kreskowiak14-Apr-19 4:48
mveDave Kreskowiak14-Apr-19 4:48 
QuestionWhat List TrimExcess() does and when to use it Pin
Mou_kol11-Apr-19 9:40
Mou_kol11-Apr-19 9:40 
AnswerRe: What List TrimExcess() does and when to use it Pin
Mycroft Holmes11-Apr-19 12:00
professionalMycroft Holmes11-Apr-19 12:00 
QuestionHow do I apply the Settings.settings values at design time? Pin
Ayub Kokabi11-Apr-19 0:38
Ayub Kokabi11-Apr-19 0:38 
AnswerRe: How do I apply the Settings.settings values at design time? Pin
Ralf Meier11-Apr-19 1:02
mveRalf Meier11-Apr-19 1:02 
GeneralRe: How do I apply the Settings.settings values at design time? Pin
Ayub Kokabi11-Apr-19 1:48
Ayub Kokabi11-Apr-19 1:48 
AnswerRe: How do I apply the Settings.settings values at design time? Pin
OriginalGriff11-Apr-19 2:28
mveOriginalGriff11-Apr-19 2:28 
GeneralRe: How do I apply the Settings.settings values at design time? Pin
Ayub Kokabi11-Apr-19 3:22
Ayub Kokabi11-Apr-19 3:22 
Questionnon intersecting circles Pin
Member 1422403810-Apr-19 3:54
Member 1422403810-Apr-19 3:54 
AnswerRe: non intersecting circles Pin
OriginalGriff10-Apr-19 3:55
mveOriginalGriff10-Apr-19 3:55 
AnswerRe: non intersecting circles Pin
Dave Kreskowiak10-Apr-19 5:16
mveDave Kreskowiak10-Apr-19 5:16 

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.