Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Tutorials und Kurse (https://www.delphipraxis.net/36-tutorials-und-kurse/)
-   -   Delphi [Tutorial] Singletons in Delphi (https://www.delphipraxis.net/146936-%5Btutorial%5D-singletons-delphi.html)

Stevie 1. Feb 2010 07:17

Re: [Tutorial] Singletons in Delphi
 
Sofern man Delphi 2010 zur Verfügung hat, finde ich diese Implementierung recht interessant.

mr2 1. Feb 2010 19:56

Re: [Tutorial] Singletons in Delphi
 
Das Create scheint nicht das Problem zu sein, eher der erste Parameter.

So geht es bei mir unter Delphi 6:
Delphi-Quellcode:
  InterlockedCompareExchange(Pointer(_Instance), Create, nil);
mr2


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:09 Uhr.
Seite 3 von 3     123   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz