Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    Quickly zero all local variables?

    Because doing so does take time. For sure it won't be noticeable for most functions, but for tiny leaf functions in hotspots, it can be. You realistically are not going to add code manually to every single function you write to do this. The compiler can't do it. Everything else is just noise in this thread.
  2. David Heffernan

    Quickly zero all local variables?

    I can't believe that anybody would use such code in real programs. Wouldn't it just be better to initialise your local variables?
  3. David Heffernan

    Quickly zero all local variables?

    Not going to be an easy way to do what you ask and I doubt it would address the real problem.
  4. David Heffernan

    Create a Delphi Dll and load it with DllMain

    It's still not clear. Are you wanting to use the CreateRemoteThread technique, where you allocate memory in the victim process which contains the name of your DLL and then your thread procedure calls LoadLibrary?
  5. David Heffernan

    Create a Delphi Dll and load it with DllMain

    Can you describe what injection technique you plan to use, and what you have achieved so far. Also, don't try to work on this with the production DLL. Work with a simple do nothing DLL so that you can test one thing at a time.
  6. David Heffernan

    Undocumented language enhancements

    Obviously I know this and have read it plenty of times. But it's way short of a formal specification. Just read the topic for properties. What does fieldOrMethod mean? It's not precisely defined anywhere. The entire language documentation is like that. Just a little imprecise.
  7. David Heffernan

    Undocumented language enhancements

    The entire language is essentially undocumented. There is no formal specification, no documented grammar etc.
  8. It's called the interface contract. It relies on an agreement between callee and caller, rather than hope.
  9. I think @Lars Fosdal had in mind a post or article with a definitive statement that exhaustively covers every form of variable.
  10. Perhaps you'd like to explain how you go about implementing an atomic increment function without using a var parameter. Which seems to be what you are advocating.
  11. Gonna be hard to implement an atomic increment without using a var parameter. Perhaps if people want to talk about the issue of whether certain variables are aligned, then perhaps a new topic would be better.
  12. David Heffernan

    (Hole) align hole inside the panel form 1

    Please don't spam the site with duplicate posts. When you do post, please don't use ultra large text.
  13. It's impossible to draw any conclusions from this declaration. This isn't code that executes. It's just the signature of a procedure. Its kinda tedious that you have said over and over that your data is aligned but people keep coming back to say "your data has to be aligned."
  14. The alignment requirement has been stated many times in this topic. It's doesn't need to be repeated.
  15. What is the question here? Is it, "is this operation atomic for aligned data?" Or is it, "what are the rules for determining whether or not data is aligned?"
  16. David Heffernan

    convert Procedure to a Unit??

    The documentation explains what a unit is in Delphi
  17. David Heffernan

    The TDIFF component -does not work in 64 bit compiled app

    This is something that crops up over and again. Always get third party libraries from their main repos, and make sure you are up to date.
  18. It is a design choice for strings. Stop using strings to hold huge text files. If you want to write a program that works then that's your only choice.
  19. We've all been saying this for years and years. My old boss first said this to me 20+ years ago. We are so so so far behind.
  20. David Heffernan

    Delphi Native Code: Fast or Reliable?

    It's a 12 year old article. I think it's reasonable to assume that a lot of things have changed since it was written! Although a statement like "Delphi compiled programs are fast" is just as wrong now as it was then.
  21. David Heffernan

    Could not open Python DLL problem

    No. The DLL won't be loaded by the IDE. Why would the IDE load a Python DLL? It has nothing to do with Python. I have no problem debugging my program that hosts the Python DLL. Although I always do it with the 32 bit debugger because I prefer not to have the debugger crash every 30s as happens with the 64 bit debugger.
  22. David Heffernan

    Could not open Python DLL problem

    The IDE is a different process.
  23. David Heffernan

    XLS 2 XLSX

    It's a huge amount of work to build such software. Unlikely to find comprehensive free solution for Delphi. Perhaps you should consider my suggestion.
  24. David Heffernan

    XLS 2 XLSX

    In full generality this is difficult. Not many libraries have full support for reading and writing both formats. If it were me, I'd be looking for a way to change the problem statement.
×