Jump to content

David Heffernan

Members
  • Content Count

    3701
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. David Heffernan

    Threading question

    Why do you call ProcessMessages? And you say there are AVs but you don't have any information. The two addresses are critical, both the code address and the data address. And the call stack will be vital. Aren't you using madExcept or similar? Or if you have this under the debugger then you inspect call stack when the AV is raised.
  2. David Heffernan

    Threading question

    I'm afraid that both the points stated here are factually incorrect. SendMessage synchronously sends a message to a window. The code is executed by the thread that owns that window. Secondly, there is no reason why code in one thread should not operate on a string variable allocated in a different thread. That's not even what's going on anyway. It's just a pointer to null terminated character array. And the message handler receives that and makes a new string. No problem there.
  3. David Heffernan

    Win 10 Systray Icon taskbar, keeping it permanent

    https://stackoverflow.com/questions/61256698/show-tray-icon-always-visible-on-the-task-bar Is this you asking?
  4. David Heffernan

    Win 10 Systray Icon taskbar, keeping it permanent

    This isn't really a Delphi issue. You'd be better off searching more widely for the hacks that you desire. Be prepared for them to be brittle.
  5. It's a mess when you have Scaled set to True and you design on different machines with different DPI settings. Always has been. At my office the rule is that forms are always designed at 96 DPI to avoid such issues.
  6. David Heffernan

    The interfaces in Delphi are bad?

    Is it unreasonable to expect that programmers have knowledge and skill?
  7. David Heffernan

    The interfaces in Delphi are bad?

    That post is worthless. Best to ignore it.
  8. Please provide a minimal project, and describe the display settings on your machine.
  9. What I can't understand is why you would ever need to call such a function. Broadly, you never ask if a file is in use an any one moment. You try to do something with a file, and then handle the scenario that it fails due to being open.
  10. David Heffernan

    Difference between Pred and -1

    That doesn't make a lot of sense. What is the successor of a collection. Perhaps you mean the successor of a member of a collection. But that only makes sense in the context of the collection.
  11. David Heffernan

    Difference between Pred and -1

    For an array indexed access is usually fastest. Delphi RTL enumerators are often sub optimal. I mean, heap allocation to iterate a collection ffs.
  12. David Heffernan

    Is a standard comment before each procedure implementation useful?

    > Is a standard comment before each procedure implementation useful? No
  13. David Heffernan

    Difference between Pred and -1

    High is fine for an array. Pred is a stupid way to write Count - 1. I mean, you aren't proposing writing Pred(Length(arr)) are you.
  14. David Heffernan

    Difference between Pred and -1

    No. It's pointless verbiage. Use List.Count - 1
  15. David Heffernan

    Difference between Pred and -1

    The difference is that Pred(...) is verbose and opaque.
  16. David Heffernan

    OpenType file API?

    That's true type not open type
  17. David Heffernan

    OpenType file API?

    Find a C API and convert the header file.
  18. David Heffernan

    Find record operators via Rtti?

    I think it has a name something like &op_Equality. You should be able to enumerate the methods of the type.
  19. David Heffernan

    IPV6 to number

    If that code would compile, then there wouldn't be much point in having the library. Think about what the literal on the rhs of the assignment actually is.
  20. David Heffernan

    3 explorer running

    I doubt anyone wants to download your software. I know I don't. Normally if you want help you'd explain more what the problem is. Anyway, never mind.
  21. David Heffernan

    3 explorer running

    I'm afraid that none of this makes a lot of sense. Why do you feel that there should only be one explorer process? Why does that matter?
  22. David Heffernan

    3 explorer running

    It's common to have lots of explorer processes. There's an option that means each window is run from a different process. I can't understand why you would feel that there should only be a single explorer process. That's for the system to decide. If you want to interact with the system then you need to follow its rules. You don't make the system rules.
  23. David Heffernan

    Minifing HTML

    Of course not. You aren't generating the html.
  24. David Heffernan

    Minifing HTML

    How are you generating the original html?
  25. David Heffernan

    Problems running in 64 bit mega PC

    Yes, if it is an affinity mask then it should be NativeUInt.
×