-
Content Count
3698 -
Joined
-
Last visited
-
Days Won
185
Everything posted by David Heffernan
-
Is this method good to delete last character?
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
This is simple to answer. Measure the time of the program running. Everything else is pointless. Don't guess performance questions. Measure. -
Debugging multiple DLLs simultaneously
David Heffernan replied to Neutral General's topic in Delphi IDE and APIs
It will be shutdown when the OS updates. Also, if you want to make it hot upgradeable, make a monlotihic DLL hosted in a thin executable. -
Debugging multiple DLLs simultaneously
David Heffernan replied to Neutral General's topic in Delphi IDE and APIs
Build a monolithic executable and then the problems disappear. -
OpenAPI or YAML for Rest API documentation from Delphi source
David Heffernan replied to Allen@Grijjy's topic in Network, Cloud and Web
I've wrapped libyaml, which is a bit of a grind but very functional. -
But none of that complexity is present here. And even if it was, then you'd still use CreateProcess. ShellExecuteEx would have value with the runas verb only.
-
Whatever the problem is, trying to hijack keypresses handled by the system is not the solution
-
Do I need to test my applications on 4K monitor?
David Heffernan replied to Mike Torrettinni's topic in General Help
No. But then the user with such a monitor will notice and increase the DPI. Such a problem will affect all programs. You certainly don't need a 4k monitor to test DPI scaling but you do need multiple monitors to test per monitor DPI scaling. -
I really hate this type of paranoia constructions. What do you think about?
David Heffernan replied to Juan C.Cilleruelo's topic in Algorithms, Data Structures and Class Design
I know, but if you want to break on an exception, why would you disable that? Writing naff code instead of using the tools of the debugger is pointless. My question was rhetorical. If you disable debugging, it would be odd to then jump through hoops to debug your program. -
I really hate this type of paranoia constructions. What do you think about?
David Heffernan replied to Juan C.Cilleruelo's topic in Algorithms, Data Structures and Class Design
But how do you break there if you disable debugging? -
Fast way to find points near a given point?
David Heffernan replied to dummzeuch's topic in Algorithms, Data Structures and Class Design
Very bad idea to use the distance since that involves sqrt. Do the searching with sqr distance and only call sqrt when you have the closest point. -
Surely you just call CreateProcess directly
-
Units design
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Out of the three options, the first two are fine, the last one is a terrible idea. Don't do it. You just create loads of extra work for no benefit. -
Units design
David Heffernan replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
You aren't really naming the units with numeric suffices, surely. If you actually are doing that, put them all in the same unit. -
Pointless to ask ShellExecute to create a cmd process to in turn create another process. Create the other process directly. This is the source of all your problems.
-
Strange thing in System.Generics.Defaults.pas
David Heffernan replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
Why not 10101010? Or 1010101010? Or 1010? Or 10? -
Assuming that the integration of IDE Fix Pack doesn't address compiler performance. Which it might. Or might not. Easy enough to compare 10.2 and 10.3 rather than guessing.
-
You can't know that because IDE Fix Pack does not exist for Rio.
-
Any other Delphi download tagged as "Harmful Download" from Google ?
David Heffernan replied to HelpNDoc's topic in General Help
@spwolf wix is what we use -
Any other Delphi download tagged as "Harmful Download" from Google ?
David Heffernan replied to HelpNDoc's topic in General Help
Does that do msi? -
Strange thing in System.Generics.Defaults.pas
David Heffernan replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
That value is as good as any other value. It just has to adhere to the rule that the same value is returned every time when the same input value is supplied. -
TEdit Android DecimalSeparator 10.2.3 VS 10.3
David Heffernan replied to mausmb's topic in Cross-platform
No such thing as EU decimal behaviour. Different countries in the EU have different locale settings. -
It is my experience that ignoring such defects in your code in the interests of saving time costs you more time in the medium term. It is my experience that putting off investing in learning debugging skills in the interests of saving time costs you more time in the medium term. I understand that your boss might not appreciate that.
-
This problem could readily be solved if you let us help you learn how to debug it.
-
RTTI and EXE file size: how to shrink your executable 2 times
David Heffernan replied to Kryvich's topic in RTL and Delphi Object Pascal
Perhaps I'm guilty of making assumptions. I presumed the RTTI was in a resource. Still always best to measure. FWIW I disable RTTI when I don't need it.- 16 replies
-
RTTI and EXE file size: how to shrink your executable 2 times
David Heffernan replied to Kryvich's topic in RTL and Delphi Object Pascal
Not really. The file is mapped into memory and then read from the disk when the virtual memory system encounters page faults. So if you don't use the RTTI it will never be read. Don't theorise about performance. Measure.- 16 replies