Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Explorer    [ Add a report in this area ]  
Report #:  1265   Status: Closed
Crash when declaring const array of char
Project:  Delphi Build #:  6.240 (UP 2)
Version:    6.0 Submitted By:   Romulo Ceccon
Report Type:  Crash / Data loss / Total failure Date Reported:  5/15/2002 6:39:16 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   136381
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : 7.0.4.453
Duplicate of:  None
Voting and Rating
Overall Rating: (18 Total Ratings)
4.00 out of 5
Total Votes: None
Description
The Delphi IDE crashes when the user declares a const array of char in the interface section and, after that, try to create a new application. The IDE gives, then, a variety of errors (e.g. Invalid Pointer Operation, Access Violation in rtl60.bpl, Access Violation in coreide60.bpl etc.)

(The problem occurs only when the Code Explorer is opened and, apparently, the whole thing starts going wrong when the user writes the semicollon and the Code Explorer window is updated or blinks.)
Steps to Reproduce:
1. Start Delphi
2. Create a new standard application (File->New->Application)
3. Just before the type declaration (in the interface section) write the following:
  const
    test: array [0..1] of char = 'a';
4. Select File->Close All (don't save the current project)
5. Select File->New->Application
6. Watch the errors
Workarounds
None
Attachment
None
Comments

Nick Hodges at 5/15/2002 2:50:20 PM -
I can't reproduce this according to your steps.

Robert Love at 5/15/2002 4:16:15 PM -
I was able to reproduce an A/V very quickly.

Access Violation at address 40029F16 in module 'rtl60.bpl'.  Read of address 00000178.

Delphi 6 Pro. Update Pack 2
Windows 2000 (Build 2195)

Standard Component Pallette No 3rd party controls packages or tools added.

Will DeWitt Jr. at 5/15/2002 5:53:08 PM -
I was able to reproduce it as well.  The IDE was completely unusable after the error occurred as well.

Access violation at address 0033BAC4 in module 'delphiide60.bpl'.  Read of address 069865AC.

Note that this was NOT the first error I received, trying File -> New -> Application repeatedly yielded this specific error above (I didn't catch what the first one was, skipped through it too fast because I was curious if it left the IDE unstable).  If there's enough interest, I'll do it again and see what the first error was and see if it matches yours Robert.

Footnote: Trying to reopen a previously opened project produced an AV in coreide60.bpl at 005541B4, read of 0000002E.

Footenote #2: Trying to reopen the project entirely killed the IDE.  Clicking on 'File' in the main menu now generates an error dialog without even showing the menu.

Elmer Rivera at 5/16/2002 2:19:42 AM -
I was able to reproduce the A/V as well, but the second time around. The following error was

'List Index Out of Bounds(0)'


What i did was to create the test constant. close all without saving...then instead of choosing from file->New->Application, I just click the New Icon. then get that error.


Stefan Hoffmeister at 5/18/2002 9:35:48 AM -
Got the IDE to just disappear after some serious resetting of IDE defaults.

Travis Reno at 6/26/2002 2:27:19 PM -
I too could not reproduce the problem the first time I tried.
This was because I pasted the source code into my project.
If I type the source code in, the problem exists as reported.

Server Response from: ETNACODE01