Jump to content

Lars Fosdal

Administrators
  • Content Count

    3323
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    What about the Windows permissions? https://support.microsoft.com/en-us/topic/87ebc757-1f87-7bbf-84b5-0686afb6ca6b
  2. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    And there is nothing in the code that eats exceptions instead of exposing them? What about stills? Can you get the example to work?
  3. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    Ah, in that case - ensure there is no other software that might grab the camera instead of your app?
  4. https://blogs.embarcadero.com/delphi-digital-fan-art-and-ai-art-contest/
  5. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    You have not identified the type of device, so I assume Android and/or iOS. Has the app requested the right to use the camera? Has approval been given? Ref: https://docwiki.embarcadero.com/RADStudio/Tokyo/en/Uses_Permissions#camera
  6. Lars Fosdal

    More precise countdown

    You still haven't explicitly defined the required precision? Anything timing related on Windows is a gamble err, calculated risk, unless you go to driver-level, and even then it depends on Windows not being starved for resource.
  7. Lars Fosdal

    Update an application automatically

    We've not experienced any significant problems with it, but then again, our apps run in a controlled environment.
  8. Lars Fosdal

    WideString.c_bstr() operation in 11.2

    Did you report the problem on Quality Portal?
  9. Lars Fosdal

    Update an application automatically

    Yes. I wrote it, and it has been used in production for nearly a decade.
  10. Lars Fosdal

    How to enter unicode symbols into the Delphi IDE

    Windows standard app CharMap is another option.
  11. Lars Fosdal

    Update an application automatically

    I got code that checks for a new version, downloads it to a temp file. Renames the running file, and renames the temp file to the running name, and then uses this code to relaunch. Works for .exe files and services. Has worked well for a decade.
  12. Lars Fosdal

    Move objects to a second Data Module

    I never liked the visual data module. I'd prefer it to have a listview of components rather than a collection of icons. On event handlers. Assign them in code. They break so easily otherwise.
  13. Lars Fosdal

    Move objects to a second Data Module

    or Retire. Sometimes, there is new software out there that can do the job.
  14. Lars Fosdal

    macbook pro M1, running Delphi IDE

    Both this thread and the article you linked is nearly two years old.
  15. Lars Fosdal

    Is there a Delphi equivalent of WriteStr ?

    Added example: caveat - specifiers from the top of my head šŸ˜›
  16. Lars Fosdal

    Is there a Delphi equivalent of WriteStr ?

    I see. How many of these do you need to replace? If it is not a massive number, I would go for Format. It can both left and right pad with spaces if so is required, but converting the WriteStr formats will be a chore. WriteStr(s2, 'x = ', x:10:4, ', y = ', y:10, ', s = ', s:20); s2 := Format('x = %10.4f, y = %10d, s = %-20s, [x, y, s]); The usual f'up here is to either missalign the format string and the number of params, or have the wrong type variable in relation to the format specifier.
  17. Lars Fosdal

    Is there a Delphi equivalent of WriteStr ?

    UliGerhardt's solution could be wrapped - but it would be challenging to make threadsafe. It would treat s2 like a file, and write to the file. With a helper class, it would be possible to read the last written content out from s2 as a String again. Is it unthinkable to simply replace WriteStr(s2, with Writeln( ?
  18. Lars Fosdal

    Need a "Delphi programming guideline"

    They are trying. But - unfortunately they are trying the marketing way, not the grassroot growth way.
  19. There is another guide to the Delphi Programming language.
  20. No, you uploaded a compressed binary to GitHub. Link removed.
  21. Well, I guess it is logical... old fruit will turn "gammel" šŸ™‚
  22. gammel (Nor) = alter (Ger), but the etymologi is proto-german. Interestingly enough: age (Eng) = alder (Nor), which descends from aldr (old Nor), which again stems from alter (Ger)
  23. A good way to share sources and projects, is to use GitHub or similar.
  24. Lars Fosdal

    WideString.c_bstr() operation in 11.2

    @Roger Cigol Did you switch to the new compiler?
  25. I had to try it, @Attila Kovacs Lars Fosdal: write a poem about clouds in old norse My bad for imprecise instructions as it wrote a poem about "clouds in old norse" rather than about "clouds" in old norse. Lars Fosdal: pƄ gammelnorsk So I asked it to translate it to old norse - and albeit I am not 100% fluent, it is mostly understandable and looks credible. I fed finally fed that to Google Translate, which identified it as Icelandic - and that language is indeed closely related to Old Norse. Not perfect, but not half bad either. It can be a fantastic tool, that can create even more fantastic bullshit unless you are careful with your parameters and your proof reading.
Ɨ