Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE    [ Add a report in this area ]  
Report #:  119321   Status: Open
[Regression in XE5] using StartClassGroup and RegisterCustomModule causes stack overflow in Delphi XE5
Project:  Delphi Build #:  19.0.13476.4176
Version:    19.0 Submitted By:   Daniel Ottiger
Report Type:  Crash / Data loss / Total failure Date Reported:  9/27/2013 3:42:25 AM
Severity:    Serious / Highly visible problem Last Updated: 9/28/2013 12:40:50 AM
Platform:    All versions Internal Tracking #:   43915
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: 11
This is the same problem reported in QC116583, but this time without any 3rdparty components installed, except the one supplied in the attachements.

The goal is to have an custom form type with some additional properties.

In Delphi XE4 Update 1 and Delphi XE5 there is the following message
displayed, as soon as I open a Form which inherits from my custom form
type in the form designer:

Stack overflow - save your work and restart Delphi XE5.

In addition, the problem seems to be related to the contents if this 2 registry keys:

HKEY_CURRENT_USER\Software\Embarcadero\BDS\12.0\Package Cache

Eventually Delphi is able to heal this problem somehow magically:
For unknown reasons, delphi will sometimes replace "TPersistent" by
"TComponent" in all registry keys and values below this key:

HKEY_CURRENT_USER\Software\Embarcadero\BDS\12.0\Package Cache

I cannot see why and when this happens, but as soon as delphi has done that, the stack overflow message dissapears.

This used to work in Delphi XE4, it fails in Delphi XE4 Update 1 and Delphi XE5.

For others might be good to know that this StartClassGroup is done in the TSiLang component for instance,
hence you might have that problem in case you have installed that.
However, for this bug report I did not have any other 3rd-party components installed.
Steps to Reproduce:
1. Install Delphi XE5

2. Make sure HKEY_CURRENT_USER\Software\Embarcadero\BDS\12.0\Palette does not exist, as it would be after an install of Delphi XE5

3. Make sure HKEY_CURRENT_USER\Software\Embarcadero\BDS\12.0\Package Cache is in its initial state, as it would be after an install of Delphi XE5

4. Open the project group "ProjectGroup1.dproj"

5. Install Package "MyFormPackage.bpl"

6. Restart Delphi XE5

7. Open ProjectGroup1

8. Open Form1 (located in Unit1 of Project1) in design time editor

expected result: Form opens just fine

actual resulr: Form opens, but there will be this stack overflow message mentioned in the description.
If after that I switch to code-view of this Form and back again to design-view, delphi XE5 just immediately crashes and terminates.


Server Response from: ETNACODE01