Jump to content
Ian Branch

A component named DotNetForm already exists.????

Recommended Posts

Hi Team,

D10.4.1, Win 10.

Of late when I start D10.4.1 I have been getting the above error message as Delphi/IDE starts up.

It used to happen infrequently and closing/restarting Delphi normally restored normal service.

Of late it has become more prevalent requiring multiple restarts of Delphi before a normal start happens.

If I OK the error and let it continue I end up with Delphi windows scattered on the screen.

I have done a search of all .pas & .dfm files on my PC and can't find any 'DotNetForm' component.

I have also removed third party stuff like GExperts & cnPack but it still persists.

Open to any thoughts/suggestions.

 

Regards & TIA,

Ian

Share this post


Link to post
30 minutes ago, Ian Branch said:

If I OK the error and let it continue I end up with Delphi windows scattered on the screen.

That can happen when a desktop (.dst) file becomes "invalid". Try renaming whatever your startup layout is (default is C:\Users\(username)\AppData\Roaming\Embarcadero\BDS\21.0\Startup Layout.dst) and restart Delphi - it should recreate the .dst file.

Share this post


Link to post

Thanks Dave,

That seems to have fixed it OK.

There seems to be some corrupting interaction happening with Tools|Saving and Desktop|'Save project desktop when closing'.

If I enable that checkbox, open a project, do nothing with the project, do a close all for the project then close Delphi, all good.

If I enable that checkbox, open a project, do nothing with the project, and close Delphi without closing the project specifically, the original 'DotNetForm' issue returns.  :-(

 

Is it just me or is there a bug here?

 

Regards,

Ian

Share this post


Link to post

Hi Dave.  Yes.  Similar.

I can work without saving project desktops for now but it will be nice to get it fixed.

I have added my Vote for the issue.

Ian

Share this post


Link to post

I have been experiencing this problem for the past month where i have to rename or delete the startup layout.dst. I was wondering if it has anything to do with the last service patch i installed.  It never happened prior to this.

Share this post


Link to post

Hi Baron,

I couldn't say but all things are possible. 🙂

It still happens from time to time but I live with it att.

 

Ian

Edited by Ian Branch

Share this post


Link to post

Has anyone managed to find a solution for this? 

 

I'm getting this message more frequently now.  I get it when starting the IDE and when closing projects.  I also get it with some property editors.

 

I have tried all of the fixes suggested here without success.

Share this post


Link to post

Maybe somebody who experiences this problem could use an IDE Explorer plug-in to find out what kind of form this is? That could give you a clue about the cause and how to avoid it.

(I never saw that error, but I rarely use this IDE version.)

Share this post


Link to post
On 1/15/2022 at 6:57 PM, dummzeuch said:

Maybe somebody who experiences this problem could use an IDE Explorer plug-in to find out what kind of form this is? That could give you a clue about the cause and how to avoid it.

(I never saw that error, but I rarely use this IDE version.)

Do you have any suggestions on what plug-ins could be used?

Share this post


Link to post

Thanks again for mentioning those plugins.  IDE Explorer revealed that it's something called TMetricsView.

 

Anyone know what that's for?  I'm wondering if I can disable it.

 

 

TMetrics.png

Share this post


Link to post

There are several forms that display metrics. And yes, it's probably possible to disable it by removing some package. No idea which one though. Maybe the package names might give you a clue. The GExperts PE Information expert will show you the classes a package exports, so that might also help to find it.

 

I'm glad my hint helped a bit.

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

×