Jump to content
Paul H

Continually Losing Frames

Recommended Posts

I am totally tearing my hair out over this one. I have a largish VCL project (100+ forms and frames) and recently I have started to reegularly "lose" ALL the <FormType>dfm</FormType> tags in the drpoj file, so when I try to add a frame to a form all I get is an empty frame list.

 

Re-adding all the FormType tags to the dproj file every week or so is a pain. Before I give up and rebuild the project from scratch, has anyone any idea what is happening with the IDE? I am using Delphi 12.2

Share this post


Link to post
31 minutes ago, Paul H said:

I am totally tearing my hair out over this one. I have a largish VCL project (100+ forms and frames) and recently I have started to reegularly "lose" ALL the <FormType>dfm</FormType> tags in the drpoj file, so when I try to add a frame to a form all I get is an empty frame list.

 

Re-adding all the FormType tags to the dproj file every week or so is a pain. Before I give up and rebuild the project from scratch, has anyone any idea what is happening with the IDE? I am using Delphi 12.2

It did not happen to me in 12.2 (yet). In older versions, i just replaced <DesignClass>TFrame</DesignClass> with <FormType>dfm</FormType><DesignClass>TFrame</DesignClass> in .dproj file.

T thought it was happening mostly after Delphi upgrade.

Share this post


Link to post

This also happens with me all the time. There is no method to this madness.

When developing with Delphi, I usually spend 10 - 15 % of my time reverting unwanted changes or being extra careful to not commit them.

 

If you are not using any kind of version control, this is clear sign that you should start getting familiar with it now

  • Like 2

Share this post


Link to post

Project Magician has an option for that: 

Quote

Refresh Form Type

Sometimes the FormType entries in the project file are missing. This leads to the fact that during design time one cannot instantiate frames affected by this. This functionality restores the missing entries when opening a project.

 

  • Thanks 3

Share this post


Link to post
On 1/15/2025 at 5:01 PM, Paul H said:

I am totally tearing my hair out over this one. I have a largish VCL project (100+ forms and frames) and recently I have started to reegularly "lose" ALL the <FormType>dfm</FormType> tags in the drpoj file, so when I try to add a frame to a form all I get is an empty frame list.

 

Re-adding all the FormType tags to the dproj file every week or so is a pain. Before I give up and rebuild the project from scratch, has anyone any idea what is happening with the IDE? I am using Delphi 12.2

It's "normal". The same happens in my home project which has 10-ish frames only.

At least the fix is easy 🙂

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×