Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Class Completion    [ Add a report in this area ]  
Report #:  43498   Status: Open
Invoking Class Completion causes stack overflow
Project:  Delphi Build #:  11.0.2627.5503
Version:    11.0 Submitted By:   Greg Munn
Report Type:  Crash / Data loss / Total failure Date Reported:  3/30/2007 5:09:16 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   248762
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (2 Total Ratings)
5.00 out of 5
Total Votes: None
Description
Creating a subclass of a class used on a form (ie injecting behaviour into the class that is used on the form) can cause class completion to crash.
See steps and attached test-case
Steps to Reproduce:
1. Start IDE
2. Load the attached test-case
3. Open the code editor for unit1
4. Navigate to the declaration of the TTest class and invoke Class Completion (Ctrl+Shift+C)

exp: class should be completed
act: error message:

---------------------------
Danger
---------------------------
Stack overflow - save your work and restart CodeGear Delphi for Microsoft Windows.
---------------------------
OK  
---------------------------

trying to do that a second time causes Delphi to vanish without further notice
Workarounds
Change "TTest" to "TButton" and remove the "TButton = class(TTest)".  Better still is to write it in a different unit but this is just to quickly see the changed behavior.
Attachment
43498.zip
Comments

Sebastian Modersohn at 3/30/2007 6:16:16 AM -
Good catch! I uploaded a demo project and modified the steps.

Server Response from: ETNACODE01