Article View: borland.public.cppbuilder.upgrade
Article #206CB2007 optimization codegen bug
From: Antony Corbett
Date: Thu, 12 Jul 2007 11:09
Date: Thu, 12 Jul 2007 11:09
31 lines
1930 bytes
1930 bytes
Has anyone else experienced access violations when running code that
has been "Optimized for Speed" (the default RELEASE setting)? Here's
the simplest example:
1. Create a new VCL forms app
2. Drop a TComboBox and TDateTimePicker on the main form
3. Main form code:
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
ComboBox1->Items->Add("Item1");
ComboBox1->OnChange = ComboBox1Change;
}
void __fastcall TForm1::ComboBox1Change(TObject *Sender)
{
DateTimePicker1->Date = Now();
}
4. Build using the RELEASE configuration (or any other configuration
with "Optimize for Speed" enabled)
Now when you run the app and select "Item1" you get an access
violation. This happens using other constructs also, but the above is
the simplest example I could devise.
Rgds
Antony
Technical Details
Message-ID:
<1184238583.808740.97090@m3g2000hsh.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!m3g2000hsh.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10529a,cb49a89b6630d6e5,start X-Google-Attributes: gid10529a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!m3g2000hsh.googlegroups.com!not-for-mail From: Antony Corbett <a.corbett@celcat.com> Newsgroups: borland.public.cppbuilder.upgrade Subject: CB2007 optimization codegen bug Date: Thu, 12 Jul 2007 04:09:43 -0700 Organization: http://groups.google.com Lines: 32 Message-ID: <1184238583.808740.97090@m3g2000hsh.googlegroups.com> NNTP-Posting-Host: 82.108.158.3 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1184238584 1493 127.0.0.1 (12 Jul 2007 11:09:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Jul 2007 11:09:44 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m3g2000hsh.googlegroups.com; posting-host=82.108.158.3; posting-account=OtNwKQ0AAACg6NxEgLbs53abnuceKvOf