Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Code Editor/Error Insight    [ Add a report in this area ]  
Report #:  100292   Status: Open
NullReferenceException in ErrorInsight parser: "High" without parentheses
Project:  Delphi Build #:  16.0.4276.44006
Version:    16.0 Submitted By:   Andreas Hausladen
Report Type:  Basic functionality failure Date Reported:  10/20/2011 11:41:44 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   288314
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If you type "TPointerList = array[0..High" into the editor and wait some seconds after you types
"High", the ErrorInsight parser will throw a NullReferenceException. This exception can be seen
when you debug the IDE and the debugger is configured to handle $C0000005 access
violations.
Steps to Reproduce:
1. Start RAD Studio XE2 Update 1
2. Make sure that the debugger handles the nativ OS-Exceptions Access violation ($C0000005) [Tools/Options/Debugger/Native OS-Exceptions]
3. Use "Start/Load Process..." to start another RAD Studio XE2 instance. ("$(BDS)\bin\bds.exe")
4. Create a new Delphi console application
5. Replace the code with the following code.

program High_NullReference;
type
  TPointerList = array[0..High
begin
end.

Expected:
"High" is underlined

Actual:
A NullReferenceException is thrown in the .NET ErrorInsight parser and error underlining is disabled for the whole file.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01