Jump to content

Sherlock

Moderators
  • Content Count

    1284
  • Joined

  • Last visited

  • Days Won

    28

Everything posted by Sherlock

  1. Sherlock

    No one can help

    Just my two cents as a person who has been developing commercial software with Delphi for over 20 years now (where has all the time gone? sigh). Whenever there have been issues with the software, one thing turned out to be true: The DB was almost always the problem. That, or the way DB data was being handled. Rethinking table design and handling of DB-aware and not-DB-aware components have always done the trick. But feel free to produce a minimal reproducible example for the folks at Embarcadero, if you are 100% sure that Delphi is at fault.
  2. That is a good thing. Anything built into Delphi slowly decays due to lack of maintenance. Until one day it produces only errors and management has to decide wether to trash it or build something around it to try and fix it. Most prominent recent example: ErrorInsight fixed through LSP. Or the Parnassus tools...taking longer and longer to appear in GetIt with each new Delphi version.
  3. Sherlock

    floating point error, [solved].

    For an deeper understanding read here: https://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/ And this is your solution: https://docwiki.embarcadero.com/Libraries/Sydney/en/System.Math.IsZero if you want to check for zero values.
  4. Sherlock

    Function with 2 return values ?

    My hammer beats every other tool every time.
  5. Sherlock

    SQL problem

    Everybody cool down please, and don't get personal. Thank you.
  6. Well, which Windows version is this? Windows 7 is not supported anymore, AFAIK.
  7. Sherlock

    Web-fonts v Desktop-fonts

    Check out AddFontResourceEx and RemoveFontResourceEx from the Windows API. Note that while the font is installed, it may be used by any other program in your system unless you load it FR_PRIVATE.
  8. And then there's always: https://docwiki.embarcadero.com/Libraries/Alexandria/en/FMX
  9. Sherlock

    Any advice when to use FileExists?

    So, I have no Idea, what the issue really is, it is not FileExists. At least the way I try to reproduce missing privileges no exception is raised... so I retract that statement as bogus. Sorry for the fuss.
  10. Sherlock

    Any advice when to use FileExists?

    Just happened to me in at least 10.4.2 may even be so in 11.2. But maybe it is something else, will try to put together a small demo, time permitting.
  11. Sherlock

    CodeInsight: Loading project [...] hanging

    Design time DB connections have been a pain for me in the past in several ways. Normally now I have no connection, and enable only when needed (which is rarely the case anyhow). Result is way less problems.
  12. Sherlock

    Any advice when to use FileExists?

    Just for completeness sake it should be noted, that FileExists will raise an exception, if the current user has insufficient rights to read the file. Turns out, that is completely false. Sorry about that.
  13. I see that F is indeed checked further up. I only considered the last quoted portion of code. As for the "tutorial" it is quite tedious to follow. I personally hate video tutorials, because they are always to slow when it does not matter and to fast when it does. A readable tutorial is worth so much more than that. Anyway... I recreated the project as stated in the video,I even copied your code, and it works without errors. You must have done something different along the line...especially since your screenshot somewhat differs from the video.
  14. Well, don't typecast without checking if the type fits. You need to check if F really is a TLayout and if child 0 really is a TLine. Something like: if F is TLayout then if TLayout(F).Children[0] is TLine then L:=TLine(TLayout(F).Children[0]); On the other hand you should only type cast when necessary. TFMXObject has a perfectly fine Children property no need to cast F into a TLayout. Check your entire code for these things and you should have eliminated one cause for the AV.
  15. Sherlock

    Looking for a localization tool

    I admit it has been 10+ years since I looked into translation tools, but dxgettext was the least Delphi like with an inability to use resourcestrings. Multilizer and later on Sisulizer have been the tools of choice for me ever since. But I must admit I have not been needing localization tool in the past couple of years so my bias is very sure to be outdated.
  16. Sherlock

    Search unit with db objects

    It's called a data module. And you can search its dfm file like any other Delphi dfm...if it is not binary, which should be default.
  17. Sherlock

    generics

    Not a blog, but even better (IMHO): https://stackoverflow.com/questions/8460037/list-of-delphi-language-features-and-version-in-which-they-were-introduced-depre
  18. Sherlock

    The Delphi 11.2 release thread

    Well I am just glad, that my applications seem to be barely more complex than "Hello World" because I really have none of these issues. But then again I use no inline variables, bpl, dll, 3rd party frameworks or language enhancements or any other new agey stuff I'm not able to wrap my head around anyway. Just plain old Delphi plus generics. And that works really good.
  19. The question is, what happens to myParentNode before the if statement. How is it initialized/filled?
  20. Do you mean, these sources are located in the folders of your XE5 installation?
  21. Sherlock

    Change of coding style/structure..

    Nonono, of course not. I just wanted to weaken the "it's just another tool in the box" argument.
  22. Sherlock

    Change of coding style/structure..

    There should actually be a refactoring tool to "de-with" a portion of code. That would be really cool. And something else is in the toolbox you would not dream to use: Goto
  23. Sherlock

    Delphi 11.2 Patch 1 bug ??

    I wonder why some obvious things keep breaking unnoticed...
  24. Sherlock

    How to display weather data onto a sphere

    That is basic stuff, perhaps you should consider a Delphi course or reading a book.
×