Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GetSmartTextSize() fails with QTF text
Re: GetSmartTextSize() fails with QTF text [message #61526 is a reply to message #61509] Tue, 04 March 2025 08:05 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Didier wrote on Thu, 27 February 2025 23:44
Hello Mirek,

I think I found something interesting: when compiling in "verbose", all paths to UppHub packages get included although I have only included one in my application package dependencies.

So if I have same packages present in UppHub and in another nest (both nests present in nest config paths) ... things will probably get nasty


OK, so let's analyse this:

"regular" nests includes should always precede hub nests (unless the main package is from the hub, e.g. example package, then single hub nest can be before regular nest). At the same time, when looking for package, nests are searched in the same order as is the order of nest includes. I would argue that this leaves little place for things to get nasty...

Possible problems I have found: Internal includes are added for all packages (e.g. plugin/sundials). That is probably unnecessary, but I am sort of afraid to fix that. Build methods includes are added at the end of list. That IMO is OK....
Re: GetSmartTextSize() fails with QTF text [message #61527 is a reply to message #61526] Tue, 04 March 2025 09:51 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
When including external code, internal includes are some times necessary. If not, it would be necessary to change the includes of the external code by hand. I prefer to maintain the original code untouched.

Best regards
IƱaki
Re: GetSmartTextSize() fails with QTF text [message #61528 is a reply to message #61527] Tue, 04 March 2025 10:15 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 04 March 2025 09:51
When including external code, internal includes are some times necessary. If not, it would be necessary to change the includes of the external code by hand. I prefer to maintain the original code untouched.


I agree...

Just investigating all possible loopholes. But my guts feeling is that possible problems with builder ignoring changes are not include path related...

Would be nice to have more info...

Mirek
Re: GetSmartTextSize() fails with QTF text [message #61546 is a reply to message #61528] Fri, 14 March 2025 09:19 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
mirek wrote on Tue, 04 March 2025 10:15
koldo wrote on Tue, 04 March 2025 09:51
When including external code, internal includes are some times necessary. If not, it would be necessary to change the includes of the external code by hand. I prefer to maintain the original code untouched.


I agree...

Just investigating all possible loopholes. But my guts feeling is that possible problems with builder ignoring changes are not include path related...

Would be nice to have more info...

Mirek


Hey, so I have found and fixed one problem with dependencies:

In Win32, include file names can have different case from actual files (e.g. Header.h and #include "header.h"). There is a caching mechanism for filetimes to speed things up that was not ready to cope with this.

Now fixed: https://github.com/ultimatepp/ultimatepp/commit/4315ff493bc2 94e2dc2707062be95b998376768f

Can this be the problem?
Re: GetSmartTextSize() fails with QTF text [message #61554 is a reply to message #61546] Sun, 16 March 2025 18:24 Go to previous message
Didier is currently offline  Didier
Messages: 728
Registered: November 2008
Location: France
Contributor
Quote:
Hey, so I have found and fixed one problem with dependencies:

In Win32, include file names can have different case from actual files (e.g. Header.h and #include "header.h"). There is a caching mechanism for filetimes to speed things up that was not ready to cope with this.

Now fixed: https://github.com/ultimatepp/ultimatepp/commit/4315ff493bc2 94e2dc2707062be95b998376768f

Can this be the problem?


Sorry for not replying faster, I didn't have much free time lately

Thanks, I will, update my windows version
Previous Topic: Stream Load serialization fired twice
Next Topic: SSL.h
Goto Forum:
  


Current Time: Mon Jun 09 21:50:47 CEST 2025

Total time taken to generate the page: 0.04391 seconds