Jump to content

David Heffernan

Members
  • Content Count

    3494
  • Joined

  • Last visited

  • Days Won

    172

Everything posted by David Heffernan

  1. David Heffernan

    CharInSet revisited (again)

    function CharInSet(C: WideChar; const CharSet: TSysCharSet): Boolean; Given this declaration, how could it? Note that I assume that you mean UTF-16 surrogate pairs.
  2. David Heffernan

    Any good replacement for Indy email?

    I strongly recommend that you identify the problem before trying to solve it.
  3. David Heffernan

    Any good replacement for Indy email?

    It's plausible that Indy isn't the problem here and that a wholesale library replacement will leave you with the same problems.
  4. David Heffernan

    IDE Code Coverage Plugin available

    Does vtune do code coverage?
  5. David Heffernan

    UAC request minimized instead of full-screen

    That's kind of odd. Does the same happen if you do this with a brand new vcl project?
  6. @Stefan Glienke You could readily tweak this to work with TStrings rather than TStringList and avoid all that hacking at the internals. But it's nice to see you using records for enumerators!
  7. David Heffernan

    D11 - A bridge too far.. :-(

    Not all of us do this!
  8. David Heffernan

    D11 - A bridge too far.. :-(

    This would be too late to make much difference. The longer you leave bugs the more they cost. And I'm not sure that it would even help much. You'd have to devote significant resource to running the community contributors. Better to use that resource to get the quality right from the off. There's just something rotten in the Emba development model.
  9. Python has enumerate for this which ought to be possible for Emba to implement for Delphi in a similar manner as for in.
  10. David Heffernan

    D11 - A bridge too far.. :-(

    The thing is, releasing software that is of low quality means that your engineering team spends large amounts of time addressing this low quality post release when it is much more expensive to do so. If they would use better engineering processes and concentrate on quality from the very start, then they would use far less human resources. They aren't even cutting corners with this approach. It is inefficient in terms of their own times and resource, and obviously really inefficient for every user affected by this low quality.
  11. David Heffernan

    D11 - A bridge too far.. :-(

    You'd think that a good engineering department would be able to develop programs to a sufficient level of quality that you wouldn't need the public to do the testing by trial and error. I don't agree with the sentiment here that it is not possible to create good quality software without getting the public to test it.
  12. David Heffernan

    D11 - A bridge too far.. :-(

    All prior experience tells us this is what happens with a new release. Now they spend a year or two fixing this round of bugs. We'll, fixing the most significant ones. Some will be with us for a while.
  13. David Heffernan

    How to focus a window from another application?

    Is it the calculator window that you want to bring to the top, or is this just an example? And what if there are multiple windows so named?
  14. David Heffernan

    I/O Error 103

    That all makes sense. However, I still think I would use a resource for this. I do something very similar myself. I my case the executable is a help browser, and the embedded data is zipped up webhelp content. There are windows API functions for updating resources.
  15. David Heffernan

    I/O Error 103

    Yes. This isn't really to do with Delphi. Writing to a file can be done in any language. Certainly I can see that antimalware software is likely to object to such code. I could image attaching a payload to an executable after building it, and I'd always do that using a resource. But I'd see a problem with an executable being modified in the field. That would make updates next to impossible. File versioning would be messed up. What data are you adding to the file anyway? Why are you doing this at all? And when you say arbitrary executable file, I presumably mean an executable file that you control. You can't really imagine doing this to executable files provided by arbitrary third parties?
  16. David Heffernan

    LSP - Alexandria

    You should try one of the compilers other than the 32 bit Windows compiler!! I 100% agree with the sentiment that the tooling should work.
  17. David Heffernan

    I/O Error 103

    I think this isn't the way to do it. I'd expect to see you add a resource with the additional payload.
  18. David Heffernan

    I/O Error 103

    Doesn't an exe contain a file hash? I'm pretty sure that there are better ways of solving your problem, whatever it is, than modifying an exe file.
  19. David Heffernan

    I/O Error 103

    Even if you can succeed in writing to this file, what do you think the resulting exe will do?
  20. David Heffernan

    enable/disable the internet connection?

    There are many posts on this topic on Stack Overflow. What did those posts yield?
  21. David Heffernan

    enable/disable the internet connection?

    With all your experience you shouldn't be surprised when people wonder if there are better ways to solve problems people face. I'm sure you do the same in your work.
  22. David Heffernan

    enable/disable the internet connection?

    The OS already has UI to let you switch connections on and off. Why not use it?
  23. David Heffernan

    Maximum static memory

    Have you considered blogging?
×