Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: Virtual list control Pin
Nnamdi Onyeyiri29-Aug-02 23:59
Nnamdi Onyeyiri29-Aug-02 23:59 
GeneralWorker Thread Pin
Mazdak29-Aug-02 19:50
Mazdak29-Aug-02 19:50 
GeneralRe: Worker Thread Pin
Rickard Andersson2029-Aug-02 21:11
Rickard Andersson2029-Aug-02 21:11 
GeneralRe: Worker Thread Pin
Martin Haesemeyer29-Aug-02 21:16
Martin Haesemeyer29-Aug-02 21:16 
GeneralNeeds to know if i can even do this.. Pin
Jason Tucker29-Aug-02 17:02
Jason Tucker29-Aug-02 17:02 
Generalcompute huge datastructure once on dll-load Pin
Rüpel29-Aug-02 3:54
Rüpel29-Aug-02 3:54 
GeneralRe: compute huge datastructure once on dll-load Pin
leppie29-Aug-02 4:59
leppie29-Aug-02 4:59 
GeneralRe: compute huge datastructure once on dll-load Pin
Rüpel29-Aug-02 5:09
Rüpel29-Aug-02 5:09 
yes it is kind of a lookup-table (a lookup-tree if you like)

but when i have that thing a static member of a class, it still has to be created once. when should i do that? in the constructor? but then the procedure takes place each time an object of this class is created via new. or do you think an additional static bool set to true after the first creation may help?

lets say
Class A { <br />
static Tree lookupTree; <br />
static bool created=false; <br />
A()<br />
{<br />
  if (!created) <br />
  {<br />
    ExpensiveTreeCreationFunction();<br />
    created = true;<br />
  }<br />
}<br />
...<br />
}


and then i can use
<br />
A control = new A();<br />
A.foo(); //using lookupTree<br />

as often as i like without ExpensiveTreeCreationFunction(); called each time? OMG | :OMG:

:wq
GeneralRe: compute huge datastructure once on dll-load Pin
leppie29-Aug-02 5:33
leppie29-Aug-02 5:33 
GeneralRe: compute huge datastructure once on dll-load Pin
Rüpel29-Aug-02 21:30
Rüpel29-Aug-02 21:30 
GeneralRe: compute huge datastructure once on dll-load Pin
Anonymous30-Aug-02 7:42
Anonymous30-Aug-02 7:42 
GeneralRe: compute huge datastructure once on dll-load Pin
leppie31-Aug-02 5:07
leppie31-Aug-02 5:07 
QuestionIs this normal? Pin
leppie29-Aug-02 3:19
leppie29-Aug-02 3:19 
AnswerRe: Is this normal? Pin
Rüpel29-Aug-02 3:46
Rüpel29-Aug-02 3:46 
AnswerRe: Is this normal? Pin
leppie29-Aug-02 6:48
leppie29-Aug-02 6:48 
AnswerRe: Is this normal? Pin
Martin Haesemeyer29-Aug-02 8:57
Martin Haesemeyer29-Aug-02 8:57 
GeneralRe: Is this normal? Pin
leppie30-Aug-02 0:37
leppie30-Aug-02 0:37 
GeneralConversion from vb.net to c# Pin
suresh_sathya29-Aug-02 2:14
suresh_sathya29-Aug-02 2:14 
GeneralRe: Conversion from vb.net to c# Pin
Nnamdi Onyeyiri29-Aug-02 2:29
Nnamdi Onyeyiri29-Aug-02 2:29 
GeneralRe: Conversion from vb.net to c# Pin
leppie29-Aug-02 3:11
leppie29-Aug-02 3:11 
GeneralRe: Conversion from vb.net to c# Pin
Maciej Pirog29-Aug-02 4:31
Maciej Pirog29-Aug-02 4:31 
GeneralRe: Conversion from vb.net to c# Pin
Maciej Pirog29-Aug-02 4:43
Maciej Pirog29-Aug-02 4:43 
GeneralRe: Conversion from vb.net to c# Pin
David Stone29-Aug-02 13:01
sitebuilderDavid Stone29-Aug-02 13:01 
GeneralRe: Conversion from vb.net to c# Pin
Sijin29-Aug-02 19:58
Sijin29-Aug-02 19:58 
GeneralDesinger crashes after adding own Component with Properties to form Pin
Chris Richner29-Aug-02 0:25
Chris Richner29-Aug-02 0:25 

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.