Jump to content

David Heffernan

Members
  • Content Count

    3701
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. David Heffernan

    "Divided by zero" exception

    Well, this depends on whether or not exceptions are masked.
  2. David Heffernan

    "Divided by zero" exception

    I'm not recommending anything. I'm just stating how ieee754 defines these operations.
  3. David Heffernan

    "Divided by zero" exception

    Well, for ieee754 the former is NaN and the latter is +inf.
  4. David Heffernan

    "Divided by zero" exception

    Do yourself a favour and check whether exceptions are masked in the two programs at the point where exveptions are raised.
  5. David Heffernan

    "Divided by zero" exception

    Probably you are calling some code, typically in a DLL, which changes the floating point control status to mask exceptions. Delphi default is for them to be unmasked, but most other Windows dev tools mask them.
  6. Well, Delphi's floating point library isn't threadsafe so they can have a party together!!
  7. Reading Marco's article on the recently released patches for 10.4.2 I noticed this text: Is that right? If you don't keep an active update subscription, you aren't entitled to bug fixes?
  8. David Heffernan

    Is set a nullable type? (record constraint)

    The code fails to compile in XE7 with the same E2512 error. I consider a set type to be a non-nullable value type so this must be a defect.
  9. David Heffernan

    Prevent Alt or Ctrl + Print Screen

    SetWindowDisplayAffinity(Application.MainFormHandle You really need to be calling this method from CreateWnd because of VCL window recreation. Also it's kinda odd that you would use MainFormHandle from a method of the main form. Why not use Handle? But it's important to move that code to CreateWnd.
  10. David Heffernan

    Do bug fix patches really require active subscription?

    You are on subscription when 10.4.2 lands, and then the subscription expires a month later.
  11. David Heffernan

    Find exception location from MAP file?

    Neither is more suited than the other for multi-threaded programs. I don't think your usage scenario is particularly challenging or unusual as you seem to think.
  12. You have already had numerous suggestions that meet all your requirements.
  13. David Heffernan

    Show a FMX form inside a dll from a VCL application

    Seems like a sound idea to me
  14. David Heffernan

    Find exception location from MAP file?

    Far quicker at this point to subtract $00401000 from the address (assuming it's an exe loaded at $00400000)
  15. David Heffernan

    Show a FMX form inside a dll from a VCL application

    This is way more complicated than you might hope. Your VCL app will run a message loop that is designed for VCL. It's not going to be able to service your FMX form. I don't expect there is a simple solution. btw, INVALID_HANDLE_VALUE is for HANDLE types, i.e. THandle in Delphi. For an invalid HWND use NULL, which is 0 in Delphi.
  16. David Heffernan

    Find exception location from MAP file?

    EurekaLog and madExcept can both do this. It's no big deal at all.
  17. David Heffernan

    Find exception location from MAP file?

    madExcept, EurekaLog, etc. are the best ways to do this. But obviously you don't have that yet, so you can just subtract $00401000 from the address and look up that value in the Publics by Value section of the map file.
  18. David Heffernan

    TestInsight 1.2 released

    Congrats to both of you
  19. I don't get this. If you don't have any particular needs, then I don't see how anybody can offer suggestions. And if all you want is a list of libraries, then websearch will get you that. Do you know what you are going to do with these random numbers?
  20. What properties are you looking for. The reason that there are many different algorithms in use is that different applications have different requirements.
  21. David Heffernan

    Delphi books

    When you buy ebooks you are granted rights to read the book, not to send to others.
  22. David Heffernan

    Delphi books

    Not all free. Pretty galling for any of the authors of these books to read this post.
  23. David Heffernan

    Delphi books

    It depends entirely on what you want to learn about.
  24. Your way makes it impossible to pass an empty array. If an empty array is never valid, then fine. If an empty array is supported then the Pointer cast is preferable.
  25. The reason I prefer Pointer(data) is that it doesn't trigger range check error if the array has length 0.
×