Jump to content

David Heffernan

Members
  • Content Count

    3475
  • Joined

  • Last visited

  • Days Won

    171

Everything posted by David Heffernan

  1. David Heffernan

    Toolbar + ToolButton + TitleBar flicking

    Title bar panel is effectively VCL styles because theres no api for that, I think. So you probably just have to suck it up.
  2. David Heffernan

    BringToFront alternative

    Late information boo
  3. David Heffernan

    Delphi 12: internal errors

    You should report these as bugs to Embarcadero, but unfortunately they've been unable to provide a mechanism for reporting bugs for last past few months.
  4. David Heffernan

    Delphi and "Use only memory safe languages"

    I guess ARC per-se wasn't the big problem, it was more the attempt to support ARC compilers and non-ARC compilers with the same codebases??
  5. David Heffernan

    Set dynamic array of records to nil: frees all content?

    Wrong. Setting a dynamic array to nil is identical to setting length to 0 and identical to passing it to Finalize.
  6. David Heffernan

    Delphi and "Use only memory safe languages"

    That doesn't help if you have multiple variables that refer to the same instance which I guess is a more likely scenario for double free.
  7. David Heffernan

    Delphi 12 : Encoding Unicode strange behaviour

    This sounds completely broken. What if the file starts with the sentinel value that indicates that you have a utf8 payload. Why aren't you passing a separate header, and then the payload? And why are you passing utf16 at all. Isn't that just expensive. And if you must pass around utf16 please tell me that you are handling byte order correctly.
  8. David Heffernan

    Delphi and "Use only memory safe languages"

    What's pretty astonishing is that the NSA thinks that Delphi is memory safe! See White House urges developers to avoid C and C++, use 'memory-safe' programming languages | Tom's Hardware (tomshardware.com) I guess the NSA don't know anything about Delphi. obj := TObject.Create; obj.Free; obj.Free; Take that, NSA!
  9. David Heffernan

    Delphi and "Use only memory safe languages"

    Just let me know what you can do with C++ that you can't do with Delphi, in terms of safety
  10. David Heffernan

    Delphi and "Use only memory safe languages"

    No it's not. Not really the point if a government agency will only accept work using tools that meet certain criterion. You can either follow the specification and have a chance of getting the work. Or argue about the specification and be completely ignored. That's just reality.
  11. David Heffernan

    What new features would you like to see in Delphi 13?

    Not according to Embarcadero. According to Embarcadero Delphi is blazing fast because it uses native code. We all know that to be absolute marketing BS and in fact Delphi compilers produce shitty code that often runs very slowly. Yes, my original post was sarcasm.
  12. David Heffernan

    What new features would you like to see in Delphi 13?

    Delphi produces native code, and therefore is fast
  13. David Heffernan

    What new features would you like to see in Delphi 13?

    That's not my example. Nobody wants to do this with a value type because it's a non terminating recursion. Have a look at my example code to see what I'm actually talking about.
  14. David Heffernan

    What new features would you like to see in Delphi 13?

    None of that applies to my example above.
  15. David Heffernan

    Don't use Application.MessageBox

    I don't really follow this. If you have to modify your code to add the message dialog, before you start debugging, then I'm not quite sure why you can't run with a debugger attached. If you are happy to attach the debugger later, why can't you attach it at the start?
  16. David Heffernan

    What new features would you like to see in Delphi 13?

    This isn't really a great example. The sort of thing that I want to do with records, but cannot, is this: type A = record; B = record; A = record function foo: B; end; B = record function bar: A; end; I can get round this using helpers right now, but I don't understand why I can't do this directly as above.
  17. David Heffernan

    Don't use Application.MessageBox

    If you are debugging then throwing an exception is the way to do it. Then the debugger freezes all threads. You surely don't want the other threads to continue running at this point.
  18. David Heffernan

    Don't use Application.MessageBox

    Hardly, because you've now ruined your production program.
  19. David Heffernan

    Don't use Application.MessageBox

    Reporting error dialogs from thread pool threads sounds terrible. Stop doing it at all and then you don't need to think that one message box function is better than any other.
  20. David Heffernan

    Error : constant expression violates subrange bounds

    Step 1 to solving the problem is to understabd why you are compiling delphi rtl libraries
  21. I would read the documentation the same way you did
  22. David Heffernan

    Return value from other application

    Then you'll have two different instances of the VCL which is why packages exist.
  23. David Heffernan

    Return value from other application

    I don't think this is a good idea. Just share the source code between your 5 different programs. Trying to setup inter process communication will complicate things massively, and probably needlessly. It will also be difficult to maintain the feel of this being one integrated app if you have multiple processes.
×