Jump to content

Lars Fosdal

Administrators
  • Content Count

    3303
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Max string literal length = 255

    True. Normally you would for readability, but splitting involves a manual operation that carries a risk of mangling the content. Yes, it is a compiler limit, but when you can split and add up a huge string "manually", it is annoying that the compiler can't hide this for you. /rant ended
  2. Lars Fosdal

    Max string literal length = 255

    So, @emailx45 - show me a code example of how you fill an ansistring using a single string literal longer than 255 chars in the source code. Not from a loop, concatenation, string resource, file, form resource, or copied from the clipboard at runtime.
  3. Lars Fosdal

    DecodeDate Issue

    That was what I suspected.
  4. Lars Fosdal

    macbook pro M1, running Delphi IDE

    I'll be waiting for the next generation, or until they fix this: PC Gamer: Apple M1 Macs appear to be chewing through their SSDs. https://www.pcgamer.com/apple-m1-macs-appear-to-be-chewing-through-their-ssds/
  5. Lars Fosdal

    Max string literal length = 255

    Make sure you understand the core issue before posting a googled suggestion. Good luck filling an AnsiString with a string literal longer than 255 chars. Oh wait, you can't. If I don't want to split up and combine multiple literals, loading from a resource string is an option. It just irks me that I can't initialize a string variable that can literally hold billions of characters with a single constant longer than 255 chars.
  6. Lars Fosdal

    macbook pro M1, running Delphi IDE

    https://www.parallels.com/blogs/parallels-desktop-apple-silicon-mac/
  7. Lars Fosdal

    DecodeDate Issue

    Is it possible to Ctrl-click on Word ?
  8. Lars Fosdal

    DecodeDate Issue

    Which Delphi version? I am unable to reproduce in 10.4.1 - i.e. works as expected.
  9. Our services runs on domain controlled servers and are descendents from TService, but they must be configured to run with a specific AD user (i.e. not the default system user) that has the necessary rights to access it's own file, and to start and stop services to be able to upgrade themselves.
  10. Lars Fosdal

    GExperts 1.3.18 experimental twm 2021-02-21 released

    The Danes are currently having an upswing in cases due to the English mutation, and we are usually about four weeks after the Danes. I am the type of person that is happy in my own company and not dependent on hanging out with people outside the family to be stimulated, but even I am beginning to feel the pressures of self-isolation. I miss seing the users and my colleagues over a beer. That constant little ping of fear when venturing into the shopping centers and stores, wearing a mask, sanitizing my hands. It is a stress factor unlike anything I've ever endured before. There still are hundreds of thousands of people in front of me in the vaccination queue. But - you do what you can and embrace the days as they come. Thinking about Delphi things is a good diversion, so keep letting out more genies GExperts 🙂
  11. Lars Fosdal

    [Rio][FMX]How to compile for iOS without an Apple device?

    There are virtual rent-a-mac services around. https://www.macincloud.com/
  12. Lars Fosdal

    Delphi is 26 years old - Marco's blog

    Did any of you ever try Alice Pascal? Fascinating syntax enforcing IDE from the same era. https://www.templetons.com/brad/alice.html
  13. Lars Fosdal

    Delphi is 26 years old - Marco's blog

    Me too, @luebbe. My first Pascal was Compas Pascal on Z80 - which transmogrified into Turbo Pascal for DOS and CP/M. ... checks himself for lichen and moss growth again...
  14. Lars Fosdal

    Keep D2006 vs Sydney aligned

    You could do a fixup on the forms at runtime for Sydney, enumerating the controls on the forms/frames and set TLabel.Transparent to false? Do the frames have a common ancestor?
  15. Register here https://blogs.embarcadero.com/whats-coming-in-10-4-2-sydney/
  16. Lars Fosdal

    Delphi is 26 years old - Marco's blog

    This means I now have 26 years of experience with Delphi, and I still feel like a n00b around parts of it.
  17. Lars Fosdal

    Cannot Run IDE (Emarcadero Delphi 10.3)

    @Marco Cantu - See the above comment. Surely we can't solve CE license issues at Delphi-Praxis?
  18. Lars Fosdal

    Cannot Run IDE (Emarcadero Delphi 10.3)

    Please use Embarcadero's online support for registration and installation issues. https://www.embarcadero.com/support
  19. Lars Fosdal

    Quickly zero all local variables?

    If the first thing I do is to set a local variable to a specific value - any previous initialization would be wasted. Managed vars are a different story - since approaching an arbitrary pointer would be unfortunate.
  20. Lars Fosdal

    Quickly zero all local variables?

    It would be for Sydney that it is most interesting to report, me thinks.
  21. Lars Fosdal

    Quickly zero all local variables?

    Slightly worrysome that there was no warning. Is it complicated to reproduce it and report it?
  22. The check has a performance penalty, so using assert is probably the better option if you must have verification.
  23. @Marat1961 According to your link So, by the general rule is not required, as the caller is responsible.
  24. You can have an example repository with several sub-projects in their own folders. Each example would be a self contained project, ready to download, compile and run. Doing fixes would be easy. Adding features would be easy. Taking contributions would be possible.
  25. Correct. Which ones that one can trust to be. Which ones that can be made to be - and how. The impossible ones. Perhaps even a set of cookbook examples on how to do atomic exchange of different variable types, and what to do if you can't do them atomically due to misalignment.
×