-
Content Count
3497 -
Joined
-
Last visited
-
Days Won
172
Everything posted by David Heffernan
-
I'd been working with 11.2 to get my app looking good in high DPI settings. This was all fine. Now with 11.3, loads of things look terrible again. One step forward, two steps back. 'Twas ever thus.
-
No prizes for guessing what happened there. I did a complete uninstall, and then a re-install succeeded.
-
This aspect of installation isn't much fun
-
Software licensing system recommendations
David Heffernan replied to David P's topic in Delphi Third-Party
Pretty hard to make such recommendations. Really depends a lot on how your users want to use your software. Are they going to want to have floating licenses? Metred usage? Cloud hosting of license manager? We have a lot of customers that don't have a shared network and collaborate entirely in the cloud with 365 or similar. Solutions to allow such users to share licenses aren't trivial. Of course, you may know that you will never have customers with such needs, or at least not in the short term. -
This statement is incorrect unless I am very mistaken. Please show your main form code and the project file.
-
Is there a way to use a platform specific win32/win64 DEF file?
David Heffernan replied to alank2's topic in General Help
Not in a def file, perhaps you aren't familiar with def files. They are used to specify exported functions, typically at the link phase in C and C++ tool chains. See: Module-Definition (.Def) Files | Microsoft Learn -
restricting floating point range
David Heffernan replied to Dave Novo's topic in RTL and Delphi Object Pascal
No. No language or library support for anything like this. -
Invalid pointer operation when try to replace object in list
David Heffernan replied to RaelB's topic in VCL
Yes. -
Invalid pointer operation when try to replace object in list
David Heffernan replied to RaelB's topic in VCL
No. When OwnsObjects is true, as it is here, the list is the owner. -
Nested TParallel.For: Immediate deadlock
David Heffernan replied to Der schöne Günther's topic in RTL and Delphi Object Pascal
Likely because it has been properly designed by skilled practitioners in this field. -
Nested TParallel.For: Immediate deadlock
David Heffernan replied to Der schöne Günther's topic in RTL and Delphi Object Pascal
Works fine here on the latest Delphi. Are you still using Seattle? -
IsValidDate fails after the Year 9999
David Heffernan replied to Nigel Thomas's topic in RTL and Delphi Object Pascal
Yeah, defo -
IsValidDate fails after the Year 9999
David Heffernan replied to Nigel Thomas's topic in RTL and Delphi Object Pascal
I definitely hope that no Delphi code is running by 9999. I'd be amazed if there were any humans left on the planet when that year comes around. -
IsValidDate fails after the Year 9999
David Heffernan replied to Nigel Thomas's topic in RTL and Delphi Object Pascal
No. -
We don't need to read the files, and we don't need to write in all supported formats. I guess the only real complication I can see here is the PNG format for 256px images.
-
Generic from the RTL for sorted list of objects
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
Sad to see two lookups rather than one when the key is not in the dictionary. But that's the sort of thing that happens when your collection choice is limited. Given those constraints, I doubt this can be bettered. Confused actually. Your previous posts have rejected writing new code because it needs to be tested. -
You could search for a library with support for this. Otherwise the ico format is very simple and comprehensively documented.
-
Generic from the RTL for sorted list of objects
David Heffernan replied to dummzeuch's topic in RTL and Delphi Object Pascal
I don't think there is any generic collection that meets your needs in the rtl. Perhaps you'll just have to give up. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
Why let lack of knowledge get in the way of offering suggestions? -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
In a language without exceptions, how do you implement your proposed solution? Answer, you can't. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
In a programming language that didn't have exceptions. Like C. It's then up to the programmer to check if the operation failed. Inspect the FPU status word to do that. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
Floating point exceptions got masked by the library you used. We've covered this hundreds of times here and elsewhere. Some websearch will reveal more. -
"Divided by zero" exception
David Heffernan replied to Mohammad Atikur Rhaman's topic in General Help
There's an awful lot of misunderstanding here. In order to help you we'd need to see some concrete examples. -
Tlist<T> growth strategy is bad.
David Heffernan replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Even so, you'd still be spending time in the heap allocator which would be undesirable. -
CryptoLib4Pascal in Delphi 10.4
David Heffernan replied to Vilabostan's topic in Delphi IDE and APIs
Yes. The package in this library is a runtime package for use if you are using runtime packages rather than a monolithic executable. Just include the source code for the library and compile it. There is a sample program that does this.