Jump to content

David Heffernan

Members
  • Content Count

    3494
  • Joined

  • Last visited

  • Days Won

    172

Everything posted by David Heffernan

  1. Do you need to know whether or not the value is in the valid range of your target data types? Also if you need to do this fast then you probably won't be using a string for each line becasue that involves heap allocation.
  2. David Heffernan

    Windows 11 checkbox and radio button color

    In this case I don't understand what you are saying. I thought you wanted to override the default system theme. But it seems I misunderstood you.
  3. David Heffernan

    Many TTasks

    Just to be pedantic, but more "tasks" than CPUs is not a problem. The problem is when you have more runnable threads than CPUs.
  4. David Heffernan

    Many TTasks

    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.
  5. David Heffernan

    Many TTasks

    The asker already knows this. The question is not how to find N but how to control task scheduling on thread pools.
  6. David Heffernan

    Many TTasks

    Machines have a fixed and well defined number of processors that can readily be queried. So it's trivial to know what N is.
  7. David Heffernan

    Many TTasks

    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?
  8. David Heffernan

    Windows 11 checkbox and radio button color

    Isn't the entire point of the system theme that there is system wide consistency?
  9. David Heffernan

    Avoiding use of BPLs

    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.
  10. David Heffernan

    Delphi compatibility with Windows 11?

    Article says the bugs will be fixed shortly
  11. David Heffernan

    Delphi compatibility with Windows 11?

    From my brief time with win11 it seems really responsive. Start menu search is instant which is huge.
  12. David Heffernan

    Kaspersky and Compile/Linking

    The only real solution is to attack the source of the problem. Kaspersky.
  13. 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.
  14. When has an abundance of visual noise been a problem before with Pascal, the most verbose of languages!!!
  15. You shouldn't add any files to the system directories, either system32 or syswow64. They are for the system.
  16. David Heffernan

    Is Graphics32 ready for Delphi 11 yet?

    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!
  17. David Heffernan

    Is Graphics32 ready for Delphi 11 yet?

    Have you tried cloning the latest from the repo and then compiling it?
  18. Does TMonitor work correctly yet?
  19. David Heffernan

    Running Python scripts in threads

    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?
  20. David Heffernan

    Is it bug? (type inference)

    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.
  21. David Heffernan

    Is it bug? (type inference)

    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!
  22. David Heffernan

    Is it bug? (type inference)

    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......
  23. David Heffernan

    Is it bug? (type inference)

    This is clearly a bug. Check if there is a bug report in QP, and if not submit one.
  24. David Heffernan

    Traybar application, get the last active windows on desktop

    It uses a timer to poll and therefore is likely to be unreliable
  25. Consequence of your decision to use an ancient tool. Upgrade to modern delphi.
×