Einzelnen Beitrag anzeigen

mr2

Registriert seit: 3. Mai 2003
140 Beiträge
 
Delphi 2006 Enterprise
 
#22

Re: [Tutorial] Singletons in Delphi

  Alt 1. Feb 2010, 19:56
Das Create scheint nicht das Problem zu sein, eher der erste Parameter.

So geht es bei mir unter Delphi 6:
  InterlockedCompareExchange(Pointer(_Instance), Create, nil); mr2
"... we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we don't know. But there are also unknown unknowns - the ones we don't know we don't know."
  Mit Zitat antworten Zitat