Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to control LEDS Pin
Dave Kreskowiak22-Feb-13 1:43
mveDave Kreskowiak22-Feb-13 1:43 
AnswerRe: how to control LEDS Pin
Samer AlRawi26-Feb-13 17:52
Samer AlRawi26-Feb-13 17:52 
AnswerRe: how to control LEDS Pin
garaber6-Mar-13 22:08
garaber6-Mar-13 22:08 
Questioncode for control of LEDs through port Pin
samweps21-Feb-13 21:12
samweps21-Feb-13 21:12 
AnswerRe: code for control of LEDs through port Pin
Marco Bertschi21-Feb-13 22:03
protectorMarco Bertschi21-Feb-13 22:03 
GeneralRe: code for control of LEDs through port Pin
Pete O'Hanlon21-Feb-13 22:27
mvePete O'Hanlon21-Feb-13 22:27 
GeneralRe: code for control of LEDs through port Pin
Marco Bertschi21-Feb-13 23:07
protectorMarco Bertschi21-Feb-13 23:07 
QuestionReturn Values Pin
C-P-User-321-Feb-13 16:09
C-P-User-321-Feb-13 16:09 
GeneralRe: Return Values Pin
PIEBALDconsult21-Feb-13 16:34
mvePIEBALDconsult21-Feb-13 16:34 
AnswerRe: Return Values Pin
V.21-Feb-13 20:37
professionalV.21-Feb-13 20:37 
Questionneed full tutorial for making audio player in C# Pin
Chaman Saini21-Feb-13 7:58
Chaman Saini21-Feb-13 7:58 
AnswerRe: need full tutorial for making audio player in C# Pin
Eddy Vluggen21-Feb-13 8:37
professionalEddy Vluggen21-Feb-13 8:37 
AnswerRe: need full tutorial for making audio player in C# Pin
Abhinav S21-Feb-13 15:36
Abhinav S21-Feb-13 15:36 
AnswerRe: need full tutorial for making audio player in C# Pin
Amir Mohammad Nasrollahi29-Jul-13 21:53
professionalAmir Mohammad Nasrollahi29-Jul-13 21:53 
Questionsimple audio player in C# Pin
Chaman Saini21-Feb-13 5:07
Chaman Saini21-Feb-13 5:07 
AnswerRe: simple audio player in C# Pin
Pete O'Hanlon21-Feb-13 5:35
mvePete O'Hanlon21-Feb-13 5:35 
GeneralRe: simple audio player in C# Pin
Chaman Saini21-Feb-13 5:50
Chaman Saini21-Feb-13 5:50 
GeneralRe: simple audio player in C# Pin
Dave Kreskowiak21-Feb-13 6:04
mveDave Kreskowiak21-Feb-13 6:04 
GeneralRe: simple audio player in C# Pin
Chaman Saini21-Feb-13 6:10
Chaman Saini21-Feb-13 6:10 
GeneralRe: simple audio player in C# Pin
Chaman Saini21-Feb-13 6:14
Chaman Saini21-Feb-13 6:14 
GeneralRe: simple audio player in C# Pin
Dave Kreskowiak21-Feb-13 12:32
mveDave Kreskowiak21-Feb-13 12:32 
AnswerRe: simple audio player in C# Pin
Richard MacCutchan21-Feb-13 6:32
mveRichard MacCutchan21-Feb-13 6:32 
QuestionC# WPF Memory Leak Pin
Wu Bin Michael20-Feb-13 21:54
Wu Bin Michael20-Feb-13 21:54 
AnswerRe: C# WPF Memory Leak Pin
Abhinav S20-Feb-13 22:30
Abhinav S20-Feb-13 22:30 
AnswerRe: C# WPF Memory Leak Pin
Keith Barrow20-Feb-13 23:37
professionalKeith Barrow20-Feb-13 23:37 
For the most part .net GC "just works" in .net, obviously this doesn't happen in all cases. It is rare to need to do an explicit GC. This[^] is probably worth a read. The most relevant part to this question is when GC takes place, to quote:


  • The system has low physical memory.
  • The memory that is used by allocated objects on the managed heap surpasses an acceptable threshold. This means that a threshold of acceptable memory usage has been exceeded on the managed heap. This threshold is continuously adjusted as the process runs.
  • The GC.Collect method is called. In almost all cases, you do not have to call this method, because the garbage collector runs continuously. This method is primarily used for unique situations and testing.

When one of these happens, GC takes place.

If you do something that takes up a lot of memory then it can be a good idea to GC, but it is generally discouraged. This is really a tuning thing and depends on your app, if the performance is degraded then you probably do need it.

Hope this answers your question.

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.