

Lajos Juhász
Members-
Content Count
1077 -
Joined
-
Last visited
-
Days Won
15
Lajos Juhász last won the day on May 8
Lajos Juhász had the most liked content!
Community Reputation
323 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
You should try these steps to report the bug using the e-mail to protect the source code you are working on: https://docwiki.embarcadero.com/RADStudio/Athens/en/Troubleshooting:_Delphi_LSP.
-
Something is blocking the file(s) from writing. Check out for viruses and settings in applications that could lock the file, is it a shared folder? First step could be to add the folder to the antivrus exception folders lists to keep it locking the files there.
-
in general, when using with you can never sure to which object you are assigning a value. It can work in one version of Delphi and break in the next one. You can always write: var a: TFDAggregate; begin if Qry.Aggregates.Count = 0 then begin a:=Qry.Aggregates.Add; a.Expression := 'COUNT(Town)'; a.Active := True; a.Name:='NoName'; Qry.AggregatesActive := true; end; end;
-
First of all do not use with it is always a bad idea. You are not setting the name property for the aggregate object. Edit. I have checked even the examples on docwiki are wrong.
-
Share a data between two units in dynamic loaded BPL.
Lajos Juhász replied to CRO_Tomislav's topic in VCL
You can send the query as a parameter to the function that generates the XML. -
Extreme slow-down in Windows FMX app UI since upgrading to 12.1
Lajos Juhász replied to domus's topic in FMX
Most probably yes. It would be easier if we could get that information. I do hate when on codebase I am working on changes like this does not have a comment with a proper description or ticket number. Searching in repository for the specific change can be time consuming. -
Extreme slow-down in Windows FMX app UI since upgrading to 12.1
Lajos Juhász replied to domus's topic in FMX
Maybe it is commented out to fix some strange issue/bug. In that case the developer that has commented out the code should include the report number in the comment to document the change in behavior. -
You can try the test 64 bit Delphi IDE.
- 14 replies
-
Delphi 12.3 : no longer compiles to 64 bit!
Lajos Juhász replied to gioma's topic in Delphi IDE and APIs
Same on my system 2 different exe files. -
Prg execution time problem in Delphi11.2 IDE and command line of a DLL function
Lajos Juhász replied to lucarnet's topic in Delphi IDE and APIs
It could be that when the library detects the debugger it slows down. You can try using Lazarus at Windows to see if it behaves the same. -
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lajos Juhász replied to bravesofts's topic in I made this
The question was whether it is possible to check if the future is completed or not. Method Wait can be used to achieve that. (The design of wait could be improved to support non-blocking call, but we can argue if a couple of ms delay is significant or not.) Nobody mentioned that the future is going to be used in the main thread. Whenever ProcessMessages should be used or process paint messages depends on how long the calculation should take. If it is under a minute or the application should be blocked during the life of the method, it should not be used. -
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lajos Juhász replied to bravesofts's topic in I made this
Read the documentation: function Wait(Timeout: Cardinal = INFINITE): Boolean; overload; You do not have to wait for infinite. -
promise Introducing My Delphi TFuture PPL For Thread Safe UI
Lajos Juhász replied to bravesofts's topic in I made this
That is the idea behind future to do something until you definitely need the result of the future. If you want to check if the future is finished you can use the wait method. -
The answer is the same as for the previous question you have to change the StyledSettings. In this case you are changing the Family and Style thus you have to remove those elements from the set, you do not change the Style of the font. You can replace: L1.StyledSettings:=L1.StyledSettings-[TStyledSetting.Style]; L2.StyledSettings:=L2.StyledSettings-[TStyledSetting.Style]; with: L1.StyledSettings:=[]; L2.StyledSettings:=[];
-
Calling a method of the target form?