Der schöne Günther
Members-
Content Count
688 -
Joined
-
Last visited
-
Days Won
12
Der schöne Günther last won the day on March 14
Der schöne Günther had the most liked content!
Community Reputation
316 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Simole threads providing progress info
Der schöne Günther replied to uligerhardt's topic in RTL and Delphi Object Pascal
It sounds rather straightforward. From your description, I don't even see the need for using TThread. Instead, I would Declare your each of your work items as a Task (from the System.Threading unit) Put all those tasks in an dictionary, so you have a relationship between your tree view item and the task Start the tasks In a timer, check which tasks are finished, so you can tick your checkmark in the treeview See Parallel Programming Library Tutorials - RAD Studio for more information and examples. -
win11 24h2 msheap fastest
Der schöne Günther replied to RDP1974's topic in RTL and Delphi Object Pascal
Can somebody shed some light on that? I don't really know much about heap fragmentation, but it is one of my worst nightmares. -
What is your Update Process?
Der schöne Günther replied to Jim McKeeth's topic in Delphi IDE and APIs
I spin up a new VM and start fresh. -
function: how to return nil
Der schöne Günther replied to jesu's topic in Algorithms, Data Structures and Class Design
Why did you mark the parameter as var in the first place? -
Didn't even know that was possible. Thanks.
-
Don't forget to set the Name property of your frame to something unique. Otherwise, it will throw a runtime exception when you have several components with identical name in the same container.
-
function: how to return nil
Der schöne Günther replied to jesu's topic in Algorithms, Data Structures and Class Design
Jesu mentioned using Data.DB.TParams.ParamByName which returns a Data.DB.TParam object. TParam has a property Value which is a Variant. As much as I loathe these things, the approach by @Virgo seems to be the most fitting. -
I am using Sqlite exclusively, because I don't know anything else.
-
Questions about the result of an external test
Der schöne Günther replied to Sherlock's topic in Software Testing and Quality Assurance
You may be able to use tools like "Dependency Walker" to find out which dependency includes avrt.dll. I wouldn't be surprised, however, if that's straight from the VCL. The flags in (2) seem to be PE header flags in your executable. I wouldn't even be surprised if half of them are some "Visual Studio only" flags by Microsofts Linking executables. Can't the auditor be a little more helpful and provide some context? -
Delphi takes 9 seconds to start/shutdown an empty application
Der schöne Günther replied to FreeDelphiPascal's topic in General Help
I honestly do not think that this is related to Windows itself. You need to be more specific what exactly takes time, then we can try to find out what is causing this. An empty VCL forms application takes about a second to start up in the debugger (Delphi 10) A monolithic real world application with a bunch of dlls takes about six seconds for me. I have learned to live with it ☕ Occasionally, I use Delphi 11 for a few other projects, and I remember it being slightly faster and flickering less. -
Delphi takes 9 seconds to start/shutdown an empty application
Der schöne Günther replied to FreeDelphiPascal's topic in General Help
I am not familiar with Delphi 11 (yet), but at least with Delphi 10, most of the time of starting and ending a debugging session is spent with the IDE flickering and constantly redrawing itself over and over. -
What are you using AI code-gen tools for that's working well?
Der schöne Günther replied to David Schwartz's topic in General Help
Another thing that worked surprisingly well for me is code review. I've had copilot complain about too little documentation in certain areas, point out a possible deadlock and suggest external libraries that saved me from reinventing the wheel. I haven't tried out reviewing Delphi code, though. -
Records as TDictionary keys
Der schöne Günther replied to balabuev's topic in RTL and Delphi Object Pascal
It it sufficient to have an equality operator or is the GetHashCode(): Integer method needed as well? -
ANN: New Swagger/OpenAPI Client Generator for Delphi
Der schöne Günther replied to Arnaud Bouchez's topic in Delphi Third-Party
Just for my understanding as I went through the blogpost: This is a code generator for the mORMot library, not the Delphi RTL, correct? -
Methods to convert a string TValue to the desired simple type (Like Integer, Float, DateTime);
Der schöne Günther replied to dmitrybv's topic in RTL and Delphi Object Pascal
TValue is designed to hold any type, not just "simple" ones. There is no way to marshal a string representation like "(record)" or "(interface @ 02549BD0)" back into what they once were. Maybe what you are looking for is a mechanism to serialize any record/object in memory into a string (or raw bytes), store them, and later de-serialize them?