0

When using Delphi, I was looking for the Timer component on the palette (VCL application). Accidentally, I pressed a button or I clicked something (I didn't notice what I did), and after what seemed like a blink of an eye, all of the components went missing, and now only some components show up.

These components are:

  • Delphi/ Individual File
  • Other/Unit Test
  • Delphi MultiDevice

and so on, etc. but I don't see standard, xml, net or components that I have installed anymore.

So, I tried to close the project and open it again, and also tried to restart Delphi. This ends up giving me an error:

Error Reading ToolWindow.Objects:
Error Reading Image.Objects:
Error Reading LeftBorder.Objects:
A Component Named _1 already exists.

Then, after the project opens, it gives me a seemingly endless amount of Access Violation errors, so I have to close Delphi using Task Manager.

When creating a new project, and adding the units of the project that I'm trying to open into it, it doesn't give me any errors, so I believe this is a problem with the IDE related to the palette.

The thing is: I have no idea how to solve this problem, or what even caused it. I know that I pressed some button on the keyboard, or in the menu perhaps - but it happened so quickly I didn't notice what I did, so I can't try to revert the situation. I can't open this project I've been working on for 3 years.

Here is the Access Violation error that happens, in case it's needed:

Access violation at address 6FA130CB in module 'vcl280.bpl'. Read of Address 00000000
1
  • Also: i've tried to open a recent backup of the project that i had, and it gives the same errors and behavior. (wich was not happening at the time of backup), so i highly doubt this is a problem with the project itself. Commented May 23 at 15:34

1 Answer 1

1

Delphi | individual files, Other | Unit tests, etc. are not components, but groups of code templates that are shown when you are in Code view. So, normally switching to Design view of your unit should show the standard component palette.

But, based on the fact that you are getting a bunch of errors when opening your project, it seems you might have been editing Design time packages of your current project when something went wrong and now Delphi doesn't seem to be able to load design-time components for your project.

I suggest you try fixing this by opening the Packages (Options) dialog by clicking on the Components -> Install Packages menu.

Once the dialog is open, try unchecking each design-time package one by one, saving and trying to reload your project. Start from the bottom, as those are most recently added to try, and find the troublesome design-time package that is causing problems with Delphi.

If you end up having problems opening the mentioned dialog due to some weird errors showing, you may need to recreate your project by creating a new project and adding all of your current units to it.

I'm not sure when this was added, but it seems newer Delphi versions allow you to have a project-based custom design-time palette. And if something gets corrupted in the project file, it might lead to such behaviour.

Sign up to request clarification or add additional context in comments.

4 Comments

"it seems newer Delphi versions allow you to have a project-based custom design-time palette" - that has always been a feature of Delphi. Component packages could always be enabled/disabled on a per-project basis.
Good Night, thanks for the insight into what's going on. I tried to uncheck each design time package, but the error persisted. So i tried to make a new project and add the units to it. However, after changing the project's main form, The Error: ''F2063 Could not compile used unit'' appears. when i click on it, it sends me to the ''end.'' of the code, and no line appears to have an error, but the error still appears and prevents me from running the application. Im going to try uninstalling and re-installing delphi, and see if that works. Massive thanks for the help!
So, after reinstalling delphi, i still get the same error upon trying to open the projects. Really, i dont know any other possible fix to this issue.
A Little Update: The problem has to do with the styles. after making a new project, i got the same error and behavior after i tried to use the styles in the Project Options. However, i haven't come to a conclusion on how to solve it yet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.