Article View: borland.public.cppbuilder.upgrade
Article #208Re: CB2007 optimization codegen bug
From: Zara
Date: Thu, 12 Jul 2007 13:16
Date: Thu, 12 Jul 2007 13:16
42 lines
2061 bytes
2061 bytes
On Thu, 12 Jul 2007 04:09:43 -0700, Antony Corbett
<a.corbett@celcat.com> wrote:
>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
I may be related to the bug I reported in QC 48623. I will try to take
a llok at it tomorrow.
Regards,
Zara
Technical Details
Message-ID:
<sbac93tghtmlufe5hqispef647508df3vh@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!feeder.news-service.com!feeder.news-service.com!216.196.110.148.MISMATCH!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1184238583.808740.97090@m3g2000hsh.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,cb49a89b6630d6e5 X-Google-Attributes: gid10529a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder6.cambrium.nl!feed.tweaknews.nl!feeder.news-service.com!feeder.news-service.com!216.196.110.148.MISMATCH!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Zara <me_zara@dea.spamcon.org> Newsgroups: borland.public.cppbuilder.upgrade Subject: Re: CB2007 optimization codegen bug Date: Thu, 12 Jul 2007 15:16:46 +0200 Lines: 42 Message-ID: <sbac93tghtmlufe5hqispef647508df3vh@4ax.com> References: <1184238583.808740.97090@m3g2000hsh.googlegroups.com> Reply-To: me_zara@dea.spamcon.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net 62gUsmub08bCXltDm6HkCwOVTIr6XpG7WG7OAwf6SZ9mZr9A3g Cancel-Lock: sha1:UScvQTdSFxSlUm4CeiAdC2jfc8I= X-Newsreader: Forte Agent 4.2/32.1118