-
Content Count
3674 -
Joined
-
Last visited
-
Days Won
181
Everything posted by David Heffernan
-
Just to be pedantic, but more "tasks" than CPUs is not a problem. The problem is when you have more runnable threads than CPUs.
-
So what? Assuming your tasks for CPU bound then set the thread pool thread count to match the number of CPUs, and let the scheduler do its job.
-
The asker already knows this. The question is not how to find N but how to control task scheduling on thread pools.
-
Machines have a fixed and well defined number of processors that can readily be queried. So it's trivial to know what N is.
-
Create a thread pool with 8 threads and assign the tasks to that thread pool. Incidentally does anybody know why the default thread pool has more threads than CPUs?
-
Isn't the entire point of the system theme that there is system wide consistency?
-
You've probably answered the question yourself. DesignIde brings the others with it. Now your exe will link to different instances of rtl and vcl I think. Statically linked rather than runtime packages. Which might be a problem. Solution likely to involve getting rid of dependency on DesignIde.
-
Delphi compatibility with Windows 11?
David Heffernan replied to PeterPanettone's topic in General Help
Article says the bugs will be fixed shortly -
Delphi compatibility with Windows 11?
David Heffernan replied to PeterPanettone's topic in General Help
From my brief time with win11 it seems really responsive. Start menu search is instant which is huge. -
The only real solution is to attack the source of the problem. Kaspersky.
-
Thoughts on using begin end merely to limit inline var scope.
David Heffernan replied to MarkShark's topic in RTL and Delphi Object Pascal
Not wishing to defend Perl too much, but that function could be written more clearly with a named variable, but it would look much the same in any language. The regex wouldn't change. In fact the regex match and substitute syntax in Perl is actually very readable. I don't think the Delphi version would be clearer. -
Thoughts on using begin end merely to limit inline var scope.
David Heffernan replied to MarkShark's topic in RTL and Delphi Object Pascal
When has an abundance of visual noise been a problem before with Pascal, the most verbose of languages!!! -
Starting Service app gives Error 2: The system cannot find the file specified
David Heffernan replied to Fivecord's topic in General Help
You shouldn't add any files to the system directories, either system32 or syswow64. They are for the system. -
Is Graphics32 ready for Delphi 11 yet?
David Heffernan replied to RCrandall's topic in Delphi Third-Party
Well done. It usually turns out that there's very little that needs to be done to update a library to a new version, but the number of errors can be daunting until you realise that they are all the same error! -
Is Graphics32 ready for Delphi 11 yet?
David Heffernan replied to RCrandall's topic in Delphi Third-Party
Have you tried cloning the latest from the repo and then compiling it? -
SmartPointer implementations, Pros's and Con's
David Heffernan replied to Rollo62's topic in Algorithms, Data Structures and Class Design
Does TMonitor work correctly yet? -
Why are you looking to use threads? What problem are you trying to solve with threads? Are you aware of the impact of the Python GIL?
-
You missed the point. I'm not disputing that the variable is Extended. I'm discussing the terminology decimal, binary, floating point and fixed point.
-
That's even worse! Currency is decimal fixed, but Single, Double and Extended are all binary float! Probably you are trolling me now for fun!
-
Currency isn't a floating point type, it's a fixed point type. Sorry to be so pedantic, but you know me on this topic......
-
This is clearly a bug. Check if there is a bug report in QP, and if not submit one.
-
Traybar application, get the last active windows on desktop
David Heffernan replied to mvanrijnen's topic in Windows API
It uses a timer to poll and therefore is likely to be unreliable -
Interfaces, Factories, Dependency Injection under D2007?
David Heffernan replied to Javier Tarí's topic in Algorithms, Data Structures and Class Design
Consequence of your decision to use an ancient tool. Upgrade to modern delphi. -
There are lots of articles and resources and examples on JSON parsing on the web. What have you found and what have you tried. Did you start by parsing a very simple bit of JSON first. You shouldn't try to learn something new by trying to solve your ultimate problem. Start simple and work up.
-
Traybar application, get the last active windows on desktop
David Heffernan replied to mvanrijnen's topic in Windows API
I think that when windows are activated they are also told which window is being deactivated to make this window activate. Perhaps that's what you need.