Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » A problem with UPP application scale . . . UPP exonerated, the rest of the story.
Re: A problem with UPP application scale . . . UPP exonerated, the rest of the story [message #20202 is a reply to message #20125] |
Wed, 25 February 2009 00:26 |
jlfranks
Messages: 57 Registered: May 2007 Location: Houston, TX, USA
|
Member |
|
|
Well, there is more to the story.
Mis-diagnosis of the problem for a start
True enough, the is-a relationship with inheritance will
cause a UI class file at the bottom of the hierarchy to
re-compile everything in that line all the way to the top,
maybe four or five levels deep. Still not too bad because not
all that many files are involved in a re-compile.
The top-level UI class was providing utility for lower level
classes, such as special callbacks, update of status bar, etc.
So, each lower level file that needed access to those interfaces
included the top-level .h file (the one that inherits from
top-window). That was the cause of the real problem because now
any change anywhere in the hierarchy causes a re-compilation of
any UI class that included the top-level .h, which was nearly
all of them.
The solution was to create a pure abstract base class that
provided the interface. However, it wasn't so pure because the
callbacks (static in nature) had to be put there also. Now the
top level UI also inherits from this interface and implements
the virtual methods that were pure abstract in the base class.
A provision was included for getting access to the pointer to
the base class, which all lower level UI classes can get.
Compile time is now good. UPP was not the problem, but did
gives us the rope to hang ourselves, which we promptly did.
Everything is going well now. Thank you for your suggestions.
I'm going to look at those closely. Those will just make things
that much better. We are over the hump now.
--jlf
|
|
|
|
|
A problem with UPP application scale . . . UPP exonerated, the rest of the story.
By: jlfranks on Thu, 19 February 2009 19:41
|
|
|
Re: A problem with UPP application scale . . .
|
|
|
Re: A problem with UPP application scale . . .
By: jlfranks on Fri, 20 February 2009 17:25
|
|
|
Re: A problem with UPP application scale . . .
|
|
|
Re: A problem with UPP application scale . . . UPP exonerated, the rest of the story
By: jlfranks on Wed, 25 February 2009 00:26
|
|
|
Re: A problem with UPP application scale . . . UPP exonerated, the rest of the story
|
|
|
Re: A problem with UPP application scale . . . UPP exonerated, the rest of the story.
By: mirek on Wed, 25 February 2009 10:58
|
|
|
Re: A problem with UPP application scale . . . UPP exonerated, the rest of the story.
By: jlfranks on Sat, 14 March 2009 21:23
|
|
|
Re: A problem with UPP application scale . . . UPP exonerated, the rest of the story.
By: mirek on Fri, 20 March 2009 10:32
|
Goto Forum:
Current Time: Wed Apr 17 22:27:10 CEST 2024
Total time taken to generate the page: 0.03101 seconds
|