How can I load an updated component package without restarting the IDE?
-
31-05-2021 - |
Question
When developing a new component in Delphi, I run into this inefficiency. Every time I make incremental changes to the source code (for example, a bug fix), I build the new component and install it on the Component Palette. This is OK. In another instance of the IDE, I have a project opened that is using this component. It is a visual component on one of my forms. To apply the new changes, restart of this second instance is required — closing and reopening of form or project is not enough. Can this process be optimized?
Solution
If you want to reload the design-time package without killing the IDE you can:
- Open the Install Packages dialog.
- Uncheck the package and the re-check it.
Edited to remove unnecessary steps.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow