Click here to Skip to main content
16,010,673 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Services and .config files Pin
Robert Rohde2-Feb-05 8:56
Robert Rohde2-Feb-05 8:56 
GeneralRe: Windows Services and .config files Pin
Esmo20002-Feb-05 9:22
Esmo20002-Feb-05 9:22 
GeneralRe: Windows Services and .config files Pin
mav.northwind2-Feb-05 19:58
mav.northwind2-Feb-05 19:58 
GeneralRe: Windows Services and .config files Pin
Esmo20003-Feb-05 3:25
Esmo20003-Feb-05 3:25 
GeneralCreate when you need it - best practices Pin
Judah Gabriel Himango2-Feb-05 8:27
sponsorJudah Gabriel Himango2-Feb-05 8:27 
GeneralRe: Create when you need it - best practices Pin
Robert Rohde2-Feb-05 8:54
Robert Rohde2-Feb-05 8:54 
GeneralRe: Create when you need it - best practices Pin
Judah Gabriel Himango2-Feb-05 8:58
sponsorJudah Gabriel Himango2-Feb-05 8:58 
GeneralRe: Create when you need it - best practices Pin
Robert Rohde2-Feb-05 9:09
Robert Rohde2-Feb-05 9:09 
Dont get me wrong. Its locked against everything which also uses this attribute or lock(this) (at least in this class).
And locking doesnt lock against variables, it locks against objects. So nulls are not allowed. Dont be shy - just create a private member variable just to lock this function Smile | :) .
//somewhere
private object _myHugeDataLock = new object();


//in the getter
lock (myHugeDataLock) {
      if (this.hugeData == null)
      {
          this.hugeData = new HugeData();
      }
}
return this.hugeData;

GeneralRe: Create when you need it - best practices Pin
Judah Gabriel Himango2-Feb-05 9:27
sponsorJudah Gabriel Himango2-Feb-05 9:27 
GeneralRe: Create when you need it - best practices Pin
Judah Gabriel Himango2-Feb-05 9:59
sponsorJudah Gabriel Himango2-Feb-05 9:59 
GeneralMail Encoding using MailMessage Pin
[DAve]2-Feb-05 8:16
[DAve]2-Feb-05 8:16 
QuestionSystem.Exception: CFCC is an invalid expression???? Pin
Member 15229922-Feb-05 8:08
Member 15229922-Feb-05 8:08 
GeneralSettings Window Height Pin
Guinness4Strength2-Feb-05 8:06
Guinness4Strength2-Feb-05 8:06 
GeneralRe: Settings Window Height Pin
Robert Rohde2-Feb-05 8:22
Robert Rohde2-Feb-05 8:22 
GeneralRe: Settings Window Height Pin
Guinness4Strength2-Feb-05 8:29
Guinness4Strength2-Feb-05 8:29 
GeneralCustom MessageBox Buttons Pin
JMichael24682-Feb-05 6:47
JMichael24682-Feb-05 6:47 
GeneralRe: Custom MessageBox Buttons Pin
Robert Rohde2-Feb-05 9:02
Robert Rohde2-Feb-05 9:02 
GeneralExposing class library to COM Pin
Rein Petersen2-Feb-05 6:32
Rein Petersen2-Feb-05 6:32 
GeneralRe: Exposing class library to COM Pin
Judah Gabriel Himango2-Feb-05 8:34
sponsorJudah Gabriel Himango2-Feb-05 8:34 
GeneralConverting int / long to byte[] Pin
Tristan Rhodes2-Feb-05 4:22
Tristan Rhodes2-Feb-05 4:22 
GeneralRe: Converting int / long to byte[] Pin
Some Idiot2-Feb-05 4:39
Some Idiot2-Feb-05 4:39 
GeneralRe: Converting int / long to byte[] Pin
Tristan Rhodes2-Feb-05 6:27
Tristan Rhodes2-Feb-05 6:27 
GeneralCalling Functions in Other Forms. Pin
Dwayner792-Feb-05 4:17
Dwayner792-Feb-05 4:17 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 4:57
Michael Potter2-Feb-05 4:57 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 6:25
Dwayner792-Feb-05 6: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.