Click here to Skip to main content
14,576,750 members
   

C#

 
GeneralRe: C# Programmers... Pin
Paul Conrad28-Jul-08 17:49
subeditorPaul Conrad28-Jul-08 17:49 
QuestionHow to navigate memory using pointers? Pin
CopperCircle28-Jul-08 11:08
MemberCopperCircle28-Jul-08 11:08 
AnswerRe: How to navigate memory using pointers? Pin
Luc Pattyn28-Jul-08 11:17
sitebuilderLuc Pattyn28-Jul-08 11:17 
GeneralRe: How to navigate memory using pointers? Pin
CopperCircle28-Jul-08 13:57
MemberCopperCircle28-Jul-08 13:57 
GeneralRe: How to navigate memory using pointers? Pin
Luc Pattyn28-Jul-08 14:04
sitebuilderLuc Pattyn28-Jul-08 14:04 
AnswerRe: How to navigate memory using pointers? Pin
Guffa28-Jul-08 13:58
MemberGuffa28-Jul-08 13:58 
QuestionExplicitly free byte array Pin
Dudi Avramov28-Jul-08 9:18
MemberDudi Avramov28-Jul-08 9:18 
AnswerRe: Explicitly free byte array Pin
Luc Pattyn28-Jul-08 9:26
sitebuilderLuc Pattyn28-Jul-08 9:26 
Hi,

when the last reference to an object (such as a byte array) is given up, the object becomes collectable.
Examples:
{
...
    byte[] myArray=new byte[1000];
...
    myArray=new byte[2000];    // old array is abandoned
...
    myArray=null;              // second array is abandoned
...
    myArray=new byte[3000];
...
}                              // third array is abandoned (myArray out of scope)

Collectable means the garbage collector, when it decides to run, would find and collect the object.
However it will only run when there is a need to run, unless you force it with one of the GC
methods. Doing so is almost always a bad idea, since a GC run is costly, and temporarily blocks all
the threads; therefore the GC should only run when necessary, i.e. when there isn't enough
free memory to satisfy a new SomeThing() request.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


AnswerRe: Explicitly free byte array Pin
led mike28-Jul-08 9:36
Memberled mike28-Jul-08 9:36 
Questiontrouble with RegisterClientScriptBlock Pin
sarajo198128-Jul-08 7:14
Membersarajo198128-Jul-08 7:14 
AnswerRe: trouble with RegisterClientScriptBlock Pin
Christian Flutcher28-Jul-08 7:52
MemberChristian Flutcher28-Jul-08 7:52 
AnswerRe: trouble with RegisterClientScriptBlock Pin
led mike28-Jul-08 9:07
Memberled mike28-Jul-08 9:07 
Questionwcf question Pin
poqeqw28-Jul-08 7:10
Memberpoqeqw28-Jul-08 7:10 
AnswerRe: wcf question Pin
Mycroft Holmes28-Jul-08 20:13
professionalMycroft Holmes28-Jul-08 20:13 
QuestionFormBorderStyle Pin
netJP12L28-Jul-08 6:41
MembernetJP12L28-Jul-08 6:41 
AnswerRe: FormBorderStyle Pin
Luc Pattyn28-Jul-08 6:47
sitebuilderLuc Pattyn28-Jul-08 6:47 
Questiondisplay records between a date range Pin
Reality Strikes28-Jul-08 6:09
MemberReality Strikes28-Jul-08 6:09 
AnswerRe: display records between a date range Pin
Luc Pattyn28-Jul-08 6:26
sitebuilderLuc Pattyn28-Jul-08 6:26 
GeneralRe: display records between a date range Pin
Reality Strikes28-Jul-08 7:12
MemberReality Strikes28-Jul-08 7:12 
GeneralRe: display records between a date range Pin
Luc Pattyn28-Jul-08 7:29
sitebuilderLuc Pattyn28-Jul-08 7:29 
GeneralRe: display records between a date range Pin
Reality Strikes28-Jul-08 7:45
MemberReality Strikes28-Jul-08 7:45 
GeneralRe: display records between a date range [modified] Pin
Luc Pattyn28-Jul-08 8:03
sitebuilderLuc Pattyn28-Jul-08 8:03 
AnswerRe: display records between a date range Pin
User 665828-Jul-08 8:44
MemberUser 665828-Jul-08 8:44 
GeneralRe: display records between a date range Pin
Luc Pattyn28-Jul-08 8:55
sitebuilderLuc Pattyn28-Jul-08 8:55 
GeneralRe: display records between a date range Pin
Reality Strikes29-Jul-08 4:03
MemberReality Strikes29-Jul-08 4:03 

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.