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?
How can I load an updated component package without restarting the IDE?
Asked Answered
In Project Manager, right click on the package, say "uninstall" then "build" and "install". –
Quarterhour
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.
Steps 1 and 4 are not neccessary. –
Mccullum
Sometimes it happens i cant build component project because of fatal error: Could not open (program is still running?). This can be avoided by reordering operations: first unchecking the package, then building and installing component and re-checking the component again. –
Mccullum
I think if you want to run two IDE instances its always going to require more work. Delphi handles the reload in the current IDE instance but doesn't tell other instances to reload its packages. If you can work in a single IDE instance, and just use a Project Group, instead of switching IDE instances, you'll find this gets easier. –
Hypercorrect
Warren is right. Unless you're debugging the component's design-time behavior, you shouldn't need a second IDE instance. –
Kittiekittiwake
Why doesn't Delphi give you a option for it to automatically reload certain packages? –
Bertsche
@GregT Perhaps because the developers didn't think to do it, or decided that it wouldn't be sufficiently beneficial, or because there are technical reasons why it would be hard to implement. Who knows? –
Rondarondeau
I've added steps to repeat this Access Violation here: quality.embarcadero.com/browse/RSP-40029 –
Bertsche
@Greg The question, and my answer, don't appear to discuss any access violation. Did you post in the wrong topic by mistake? –
Rondarondeau
Oh... The Access Violation is similar to my problem. I linked en.delphipraxis.net/topic/… in the quality bug report which also has a link to this stack overflow link for a possible answer. –
Bertsche
@Greg OK, but this question has nothing about ab access violation. I'm confused by your comments. –
Rondarondeau
Ok,,, yeah.. I think this was for another stackoverflow topic and I was working on my project in overtime and wasn't thinking straight. –
Bertsche
© 2022 - 2024 — McMap. All rights reserved.