Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    Bug in Android32 compiler

    You don't need to do anything with INFs, they compare exactly as you'd expect.
  2. David Heffernan

    Bug in Android32 compiler

    Not a bug. All comparison operators return false when one of the arguments is NaN. https://stackoverflow.com/questions/1565164/what-is-the-rationale-for-all-comparisons-returning-false-for-ieee754-nan-values Also, bug reports are best at Quality Portal. Although not this one, because it's not a bug.
  3. David Heffernan

    64bit Debugger Not Handling Memory Problems

    That's exactly the error I'd expect and the debugger will break at the line of code that accesses the uninitialized pointer. None of these tools will make much difference to this sort of debugging. You just need a slightly better understanding of how memory errors manifest and how to let the debugger tell you what's wrong.
  4. David Heffernan

    Delphi 5 Printing

    Well, how are you printing at the moment, if not using GDI? And GDI printing must be like 30 years old now.
  5. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    Yes, this is precisely what I currently do
  6. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    Encrypting the map file, and then decrypting on runtime doesn't add much security. Your map file would be readily reversible by any moderately skilled hacker. If you want to keep the map file private, don't add it to your exe and decode the stack trace addresses into method names when the bug report is sent to you.
  7. David Heffernan

    Issues with Sleep(1) called in a loop

    Answer can be found in the documentation of Sleep. Sleep can only wait for multiples of system ticks. And your system appears to tick at a frequency of 15ms. Which is typical, that being the default tick frequency. There are many many discussions of this online. Here's one: https://stackoverflow.com/questions/3744032/why-are-net-timers-limited-to-15-ms-resolution
  8. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    Yes, I understand the behaviour, but I just don't know the use case. I guess it just be some exception handling model that I've never used. Like Mathias I tend to raise a new exception, or re-raise. But obviously breaking language feature is not desirable.
  9. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    I guess that like Mathias I don't understand the use case for the code which madExcept is making fail.
  10. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    And what about Mathias' response in that thread?
  11. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    madExcept does support nested exceptions.
  12. David Heffernan

    Has anyone tried running Delphi on Windows ARM?

    That does sound funny. Is it true though?
  13. David Heffernan

    SetLength TBytes Memory Leak

    Are you saying that it was in the end nothing to do with your SetLength calls and was just a defect somewhere else in your code that corrupted the heap?
  14. David Heffernan

    SetLength TBytes Memory Leak

    That doesn't change anything. That is just wasteful. We know that dynamic arrays work correctly. If you really want to resolve the problem you need to clearly identify it first.
  15. David Heffernan

    SetLength TBytes Memory Leak

    The code that we can see can't leak. There is likely a bug in some other code, probably your code. If you show a minimal repro we'll find it easily.
  16. David Heffernan

    Delphi IDE on AMD cpu?

    Using all your memory doesn't necessarily mean that your computer would be slower with less. It usually just means that your computer is making the disk cache as large as possible.
  17. David Heffernan

    Delphi IDE on AMD cpu?

    If running Delphi is the biggest concern that you have, as you stated above, then it looks like you are significantly over-speccing this machine.
  18. David Heffernan

    Delphi IDE on AMD cpu?

    I don't see l any good reason why the IDE stability would have anything to do with hardware. It's just bug ridden. Those AMD processors are pretty tasty. Gamers love them. But they are way over powered for Delphi. Most important thing you can do for Delphi IDE perf is have a good SSD.
  19. David Heffernan

    Build managed dll in Delphi

    I meant the startup cost for the developer to learn how to create and maintain and deploy com servers.
  20. David Heffernan

    Build managed dll in Delphi

    Whether you opt for pinvoke or a COM server depends very much on what the interface surface area looks like. I don't think anybody can give you a valid recommendation without knowledge of that. Broadly speaking, for more larger and more complex interfaces, then a COM server may be preferable. For simpler interfaces, then p/invoke may be preferable. It is more effort to setup a COM server (especially if you have to learn COM), but having done so the coding on both sides will likely be simpler. For larger and more complex interfaces the startup cost of a COM server will yield time savings to offset that. For an interface that can be represented by a small number of functions, then you will never recover that startup cost, hence why p/invoke would win. To my mind at least those are the main factors to consider in your decision.
  21. David Heffernan

    MAP2PDB - Profiling with VTune

    What other tools use pdb? I think pdb files can be used to get stack traces in Process Explorer and Process Hacker 2. Obviously there is Visual Studio and there must be many others. I wonder if anybody has tried using the pdb files generated by map2pdb with other tools such as these.
  22. David Heffernan

    I will be less active for a few weeks

    Hope you and your family recover fully @Lars Fosdal.
  23. David Heffernan

    List of usable RegEx for source code

    The fact that the term "scalable memory manager" exists shows that heap allocation is a particular issue for multi-threaded programs. That's the same point that I have been making.
  24. Selecting text in an edit control is for sure a use case where this is needed.
  25. David Heffernan

    MAP2PDB - Profiling with VTune

    Amazing work. Well done!! Thank you. Although it can't be compiled in older versions, presumably it works with programs built with older versions of Delphi? And do you have plans to support 64 bit?
×