Jump to content

David Heffernan

Members
  • Content Count

    3701
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. 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
  2. David Heffernan

    restricting floating point range

    No. No language or library support for anything like this.
  3. David Heffernan

    Invalid pointer operation when try to replace object in list

    No. When OwnsObjects is true, as it is here, the list is the owner.
  4. David Heffernan

    Nested TParallel.For: Immediate deadlock

    Likely because it has been properly designed by skilled practitioners in this field.
  5. David Heffernan

    Nested TParallel.For: Immediate deadlock

    Works fine here on the latest Delphi. Are you still using Seattle?
  6. David Heffernan

    IsValidDate fails after the Year 9999

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

    Convert Png To ico fmx delphi

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

    Convert Png To ico fmx delphi

    You could search for a library with support for this. Otherwise the ico format is very simple and comprehensively documented.
  10. I don't think there is any generic collection that meets your needs in the rtl. Perhaps you'll just have to give up.
  11. David Heffernan

    "Divided by zero" exception

    Why let lack of knowledge get in the way of offering suggestions?
  12. David Heffernan

    "Divided by zero" exception

    In a language without exceptions, how do you implement your proposed solution? Answer, you can't.
  13. David Heffernan

    "Divided by zero" exception

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

    "Divided by zero" exception

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

    "Divided by zero" exception

    There's an awful lot of misunderstanding here. In order to help you we'd need to see some concrete examples.
  16. David Heffernan

    Tlist<T> growth strategy is bad.

    Even so, you'd still be spending time in the heap allocator which would be undesirable.
  17. David Heffernan

    CryptoLib4Pascal in Delphi 10.4

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

    CryptoLib4Pascal in Delphi 10.4

    Why do you need design time packages for a cryptography library?
  19. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    deleted (why can't we delete posts)
  20. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    What AI could do is the websearch that so many askers on SO don't do, and thus avoid there being so many duplicate questions posted. That would be a plus.
  21. David Heffernan

    Does ChatAI make StackOverflow obsolete ?

    I think the answer to the original question is no
  22. David Heffernan

    Set Print Font Size...

    So scale them higher than recommended which is exactly what I do, 14/10*150=210. Problem solved. I wish there was an option to vote against QP issues.
×