Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    Delphi 11.1 Provisioning Access Violation

    Index out of range error. Stack overflow. Invalid operation. Is that how this works?
  2. David Heffernan

    MIGRATING PHOTOBOOK TO DELPHI ALEXANDRIA FROM 2014

    So make the necessary changes. Or hire a programmer.
  3. David Heffernan

    Loading data from dfm

    I can't make any sense of what you are asking here.
  4. David Heffernan

    Tstringgrid grid index out of bounds

    Perhaps the bug is in some other code in the user's program. One of the recurring themes with questions like this is that the asker often doesn't know how to use, or even realise the value, of the debugger. Re-writing the code for them doesn't help them learn that.
  5. David Heffernan

    Tstringgrid grid index out of bounds

    Do you understand what the error message tells you? You are using an index i outside the range 0 to Count-1. You can use your debugger to find out which indexing operation is out if bounds. Debugging by looking at code can be quite hard. Delphi has a powerful debugger for such moments.
  6. David Heffernan

    Micro optimization: IN vs OR vs CASE

    Do you know this?
  7. David Heffernan

    Incompatible types bug in D11.1

    The reason I asked for a minimal reproduction is that by making one, and making it minimal, you'd have learnt a good debugging technique. Instead you posted loads of spurious code. But the act of curltting it down to a minimal reproduction would have led you to the error. Then again, the compiler told you which line the error was on and somehow you missed that information.
  8. David Heffernan

    Incompatible types bug in D11.1

    Can you make a minimal reproduction and post it here as formatted code rather than screenshots.
  9. David Heffernan

    Micro optimization: IN vs OR vs CASE

    What proportion of the overall time your program takes for the task, is the operation you are trying to optimise in this thread?
  10. David Heffernan

    Why isn't this dangerous, or is it?

    You aren't. The code in @corneliusdavid post is what you should do.
  11. David Heffernan

    Why isn't this dangerous, or is it?

    No I don't think so. Follow the actual rules. When you create an instance, destroy it in the same context that you created it.
  12. David Heffernan

    Is Move the fastest way to copy memory?

    I think Arnaud's synopse library has a bunch of more optimised mem copy routines
  13. David Heffernan

    New Delphi job opportunity

    You will only consider graduates with computing degrees? Seems like that would rule out a lot of good candidates.
  14. David Heffernan

    Strange Benchmark Results; Am I Missing Something?

    Interlocked is always going to be terrible here. Local accumulation, join, and then a final summation would be better. A magic parallel=true flag is fanciful. Why look at Python. Surely look at the various C++ compilers?
  15. David Heffernan

    Strange Benchmark Results; Am I Missing Something?

    The value of the summation an be evaluated statically. I don't think any compilers do this, but I could be wrong.
  16. David Heffernan

    Strange Benchmark Results; Am I Missing Something?

    A really good compiler would remove the loop and just turn it into a simple assignment
  17. David Heffernan

    Micro optimization: IN vs OR vs CASE

    The familiar refrain, but the message has not landed yet
  18. David Heffernan

    INI problem

    TIniFile uses deprecated Windows APIs that haven't been safe to use since 32 bit Windows was release nearly 30 years ago. So yeah use TMemIniFile which has a native Delphi INI parser that won't cause you such trouble. Never ever use TIniFile is the rule here.
  19. I think I'd write a custom dict for this.
  20. I don't think any amount of care can solve the issues there
  21. David Heffernan

    Delphi 11.1 is available

    I'm so excited about this feature
  22. David Heffernan

    Delphi 11.1 is available

    Found and reported load of bugs that haven't been fixed and aren't in the public QP.
  23. David Heffernan

    SearchBuf is deprecated

    Can you just look at the RTL source code and work it out?
  24. David Heffernan

    SearchBuf is deprecated

    https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.StrUtils.SearchBuf Suggests it is now in the AnsiStrings unit.
  25. David Heffernan

    Build a Windows GUI shell in Delphi (CarPC)?

    Windows and Delphi must be the wrong tool for this task. There was a time when you didn't know Delphi. You learnt it. Is it so hard to imagine learning again?
×