Article View: borland.public.delphi.commandlinetools
Article #142Re: Dcc32 and unit initialization order problem
From: David Robb
Date: Mon, 01 May 2006 22:53
Date: Mon, 01 May 2006 22:53
20 lines
1632 bytes
1632 bytes
You cannot rely on the initialization order of units in a Delphi application, particularly larger applications. Specifically, do not write initialization code that relies on initialization code in another unit to have already executed. It's better, particularly in large projects, to create a single object that executes code like that. Dave "Gerrit Beuze" <gerrit[at]modelmaker[dot]demon[dot]nl> wrote in message news:438f52b4$1@newsgroups.borland.com... > > But that's not the point / question: > my main problems is how can compiling with Dcc32 > result in a BAD initialization order? > Today it was this problem, tomorrow it will be another. >
Technical Details
Message-ID:
<44569173$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<438d707c@newsgroups.borland.com> <438f3097@newsgroups.borland.com> <438f52b4$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,e459cf1f20edf27f X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Robb" <dnospamrobb@gatewaynospamticketing.com> Newsgroups: borland.public.delphi.commandlinetools References: <438d707c@newsgroups.borland.com> <438f3097@newsgroups.borland.com> <438f52b4$1@newsgroups.borland.com> Subject: Re: Dcc32 and unit initialization order problem Date: Mon, 1 May 2006 18:53:38 -0400 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 NNTP-Posting-Host: 66.216.144.132 Message-ID: <44569173$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1146524019 66.216.144.132 (1 May 2006 15:53:39 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail