Jump to content

David Heffernan

Members
  • Content Count

    3711
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. I think @Lars Fosdal had in mind a post or article with a definitive statement that exhaustively covers every form of variable.
  2. 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.
  3. 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.
  4. 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.
  5. 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."
  6. The alignment requirement has been stated many times in this topic. It's doesn't need to be repeated.
  7. 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?"
  8. David Heffernan

    convert Procedure to a Unit??

    The documentation explains what a unit is in Delphi
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. David Heffernan

    Could not open Python DLL problem

    The IDE is a different process.
  15. 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.
  16. 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.
  17. David Heffernan

    Casting pointer to TBytes

    You need to have a function that accepts a pointer to the byte array, and its length. Then you can pass your raw memory pointer, or pass Pointer(Bytes), Length(Bytes) when you have a TBytes to hand.
  18. David Heffernan

    Casting pointer to TBytes

    That's not an array of TBytes. It's not clear to me what your question is yet.
  19. David Heffernan

    Mapping or Cartography, that's the question

    Which can lead to being dropped from search results for manipulation and BMW found out a few years ago.
  20. David Heffernan

    Mapping or Cartography, that's the question

    I'm not convinced by what Diego says. Seems unlikely to me that cartography is a search keyword that will work for you. I wouldn't like to make suggestions, don't know what your software is. All I am saying is that if your software isn't for the purpose of creating maps then it isn't cartography.
  21. David Heffernan

    Mapping or Cartography, that's the question

    As an English speaker and an orienteer (course d'orientation en Français) I am clear that cartography is the act of surveying and creating a map. I don't think you want to use that word for your software as you have described it here.
  22. David Heffernan

    How to fix "Warning'

    It is a class method. Use the class as the subject of the method call.
  23. This seems pointless to me. It's important to test this in the real setting. What timings do you have?
  24. What are your timings like in the real world setting?
×