Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Performance    [ Add a report in this area ]  
Report #:  50005   Status: Need Feedback
Please unload packages AFTER compile
Project:  Delphi Build #:  11.0.2709.7128
Version:    11.0 Submitted By:   Márton Balassa
Report Type:  Minor failure / Design problem Date Reported:  8/3/2007 5:26:19 AM
Severity:    Infrequently encountered problem Last Updated: 9/22/2012 11:16:03 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: 3
Description
When compiling a package, I guess, the IDE unloads all packages using this package, compiles it, and reloads the packages. Others have already reported that compiling in the IDE is very slow, compared to the speed of the commandline compiler, especially when working with a lot of packages. Now, consider that everyone works like this every once in a while:
(1) edit code
(2) try to compile
(3) compile errors -> repeat from (1)

This means, you have to wait 10-20 seconds every time you check if your code compiles. If the IDE compiled the project first (to a temp file), and unloaded the packages only if compiling was successful, there wouldn't be such a long hangup when there were errors.
Steps to Reproduce:
None
Workarounds
Use Syntax Check instead, if you just want to know if the code compiles.
Attachment
None
Comments

Lucian Radulescu at 8/3/2007 12:00:04 PM -
Not a failure type bug, I think. More like enhancement-sugestion.

But I agree something must be done. Sometime when you re-compile a package that fails, you may end-up with lots of other packages being discarded because they may depend on that one and now you could also have a project in the editor using components from those packages. If you're not carefull and close saving you could end up with forms loosing components (properties, events ... lots of work to redo)

Thomas Lohrum at 8/4/2007 2:56:46 PM -
I posted an issue #48424 re the same problem.

I too compile, to find the next incorrect source line.

With earlier Delphi versions this worked fine (i upgraded from D6/D7 to D11 previously).

What the cause of the problem is, i can not tell.

Maybe as you suggest, it is the packages unloading.

But i think, this is only the cause when you actually are working on a package.

When you work on an Application i can see no reason why the IDE
should ever unload/load packages.

Nevertheless, i find the compile slow down annoying and kindly ask codegear
to do something about it :)

Thomas

Rohit Gupta at 8/6/2007 4:59:18 PM -
It is a failure bug and a real pain when you are developing the components.  It would be even better if it did not try to reload the new package automatically.  If I have altered names or removed some methods, the IDE whinges and whinges and basically ends up loading a broken package, especially if there are dependent packages loaded.  Soemtimes, it results in the IDE crashing.

Márton Balassa at 8/7/2007 3:58:37 AM -
It MUST unload the package, otherwise it couldn't overwrite the bpl file.

Server Response from: ETNACODE01