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

C#

 
GeneralRe: Editable datagridview Pin
dan!sh 24-Aug-10 6:24
professional dan!sh 24-Aug-10 6:24 
GeneralRe: Editable datagridview Pin
saqib8224-Aug-10 6:39
saqib8224-Aug-10 6:39 
AnswerRe: Editable datagridview Pin
Mada Naga Sankar25-Aug-10 19:38
Mada Naga Sankar25-Aug-10 19:38 
Questionproblem with invoke method. it says cannot call invoke on a control until the window handle has been created Pin
prasadbuddhika24-Aug-10 4:59
prasadbuddhika24-Aug-10 4:59 
AnswerRe: problem with invoke method. it says cannot call invoke on a control until the window handle has been created Pin
Luc Pattyn24-Aug-10 5:32
sitebuilderLuc Pattyn24-Aug-10 5:32 
AnswerRe: problem with invoke method. it says cannot call invoke on a control until the window handle has been created Pin
Chris Trelawny-Ross24-Aug-10 5:34
Chris Trelawny-Ross24-Aug-10 5:34 
AnswerRe: problem with invoke method. it says cannot call invoke on a control until the window handle has been created [modified] Pin
DaveyM6924-Aug-10 9:14
professionalDaveyM6924-Aug-10 9:14 
QuestionCollection of stuct object - does the GC will run ? Pin
Yanshof24-Aug-10 2:20
Yanshof24-Aug-10 2:20 
Hi,



I have some collection that hold some struct.

Its look like this :

struct PointColor
{
    Point p;
    Color c;

    public PointColor(Int32 x, Int32 y, Color c)
    {
        p = new Point( x, y );
        this.c = c;
    }
};

private List<PointColor> PointColorCollection = new List<PointColor>();


My Question is:

Because the object in the collection are value type - does this collection cleaning can cause somehow the GC to run ?

If the answer is 'Yes' - is there some way to optimize this code and avoid GC to run ?

Thanks.
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 
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 

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.