🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #214

Re: CB2007 optimization codegen bug

#214
From: Zara
Date: Fri, 13 Jul 2007 07:49
60 lines
2424 bytes
On Thu, 12 Jul 2007 15:16:46 +0200, Zara <me_zara@dea.spamcon.org>
wrote:

>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


I am able to tell you that it is exactly the same issue I reported in
QC 48623.

You should avoid Speed and Size optimizations, although Selected
Optimizations are OK.

Please, visit the report I made, make any commnet you see fit and vote
for it if you want it to be solved faster... it was reported on July
6th and no one has yet tracked it!

Regards,

zara
Technical Details
Message-ID: <kebe93tndj7o28cpakcl5ig3oqcp3vogto@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1184238583.808740.97090@m3g2000hsh.googlegroups.com> <sbac93tghtmlufe5hqispef647508df3vh@4ax.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!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: Fri, 13 Jul 2007 09:49:16 +0200
Lines: 60
Message-ID: <kebe93tndj7o28cpakcl5ig3oqcp3vogto@4ax.com>
References: <1184238583.808740.97090@m3g2000hsh.googlegroups.com> <sbac93tghtmlufe5hqispef647508df3vh@4ax.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 FmCV0KIZl+5O+acPNjb5Lw1wAz9BFwtL1E1lJzABl0kequGeSF
Cancel-Lock: sha1:35rlaTrIrNxty4sIqlH4OgMGP8k=
X-Newsreader: Forte Agent 4.2/32.1118