Jump to content

Lars Fosdal

Administrators
  • Content Count

    3319
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Lars Fosdal

    A book about Object Pascal Style Guide

    OP deleted both the sourceforge content and his account here. Go figure.
  2. Have a look at https://github.com/gabr42/OmniThreadLibrary and TTask in the RTL.
  3. Lars Fosdal

    suppress connection killed/ gone away dialog

    Is there an exception handler around the query that throws the dialog? We've wrapped all queries in such a way that if we get a disconnect, and the query throws an exception, we explicitly reconnect and try again. Note that we don't use the DB aware components - so I am not sure how to deal with a disconnect situation in that case, but you need to somehow handle the exception to avoid the default dialog.
  4. Lars Fosdal

    Debugging Issues in D11 64Bit with Packages

    The debuggers need a lot of care. The current state is abysmal - particularly for 64-bit.
  5. For me, it has been captcha free for the last couple of months. Go figure.
  6. Lars Fosdal

    docwiki.embarcadero.com is not working

    As I press F5 to refresh, every second view comes back like [9781f524d3a11c075ed734e3] /RADStudio/Alexandria/en/Main_Page Wikimedia\Rdbms\DBQueryError from line 1457 of /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php: A connection error occured. Query: BEGIN Function: Wikimedia\Rdbms\Database::query (LCStoreDB::get) Error: 2006 MySQL server has gone away (etnadocwikidb01) Backtrace: #0 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string) #1 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean) #2 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(3735): Wikimedia\Rdbms\Database->query(string, string) #3 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(3702): Wikimedia\Rdbms\Database->doBegin(string) #4 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(1135): Wikimedia\Rdbms\Database->begin(string, string) #5 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string) #6 /var/www/html/shared/BaseWiki31/includes/libs/rdbms/database/Database.php(1479): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array) #7 /var/www/html/shared/BaseWiki31/includes/cache/localisation/LCStoreDB.php(52): Wikimedia\Rdbms\Database->selectField(string, string, array, string) #8 /var/www/html/shared/BaseWiki31/includes/cache/localisation/LocalisationCache.php(412): LCStoreDB->get(string, string) #9 /var/www/html/shared/BaseWiki31/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->isExpired(string) #10 /var/www/html/shared/BaseWiki31/includes/cache/localisation/LocalisationCache.php(334): LocalisationCache->initLanguage(string) #11 /var/www/html/shared/BaseWiki31/includes/cache/localisation/LocalisationCache.php(371): LocalisationCache->loadItem(string, string) #12 /var/www/html/shared/BaseWiki31/includes/cache/localisation/LocalisationCache.php(292): LocalisationCache->loadSubitem(string, string, string) #13 /var/www/html/shared/BaseWiki31/languages/Language.php(3177): LocalisationCache->getSubitem(string, string, string) #14 /var/www/html/shared/BaseWiki31/includes/MagicWord.php(352): Language->getMagic(MagicWord) #15 /var/www/html/shared/BaseWiki31/includes/MagicWord.php(280): MagicWord->load(string) #16 /var/www/html/shared/BaseWiki31/includes/parser/Parser.php(4848): MagicWord::get(string) #17 /var/www/html/shared/BaseWiki31/extensions/TreeAndMenu/TreeAndMenu_body.php(24): Parser->setFunctionHook(string, array) #18 /var/www/html/shared/BaseWiki31/includes/Setup.php(948): TreeAndMenu->setup() #19 /var/www/html/shared/BaseWiki31/includes/WebStart.php(88): require_once(string) #20 /var/www/html/shared/BaseWiki31/index.php(39): require(string) #21 {main}
  7. Lars Fosdal

    docwiki.embarcadero.com is not working

    Nope. Still fails. Front page sort of loads - but going to the Alexandria section produces a call stack.
  8. Lars Fosdal

    Any GraphQL implementation out there?

    Yeah, it seemed a little out of place for TMS. Do they have this for their other products as well?
  9. Lars Fosdal

    Any GraphQL implementation out there?

    Is this some sort of rip-off of the TMS components?
  10. I posted the following suggestion on the QP. https://quality.embarcadero.com/browse/RSP-37096 I wish I could leave hints in the code as to how I would want a debugger to visualize a complex type variable. You add specify it as a watch statement, but you can’t really keep an infinite list of watches, hence a way of describing a default inspection view in the source code would be useful. type TEditForm = class(TForm) Edit1: TEdit; //$inspect Edit1.(FEnabled, FName, FCaption, Trim(FText)) Consider the hint if you hover over Edit1 in TEditForm.Validate Imagine if the inspect hint comment after the variable declaration had effect: //$inspect Edit1.(FEnabled, FName, FCaption, Trim(FText)) All the formatting and tricks that can be done in the inspector, should be applicable in the $inspect template. You can still expand the Edit1 to see the fields, although I'd like an "All" option and a scrollable list, and perhaps a highlight for the $inspect featured fields. Likewise, for the watch - it could suggest the $inspect template by default instead of the full list, with a checkbox to include all fields if so desired. Another possibility would be to declare the $inspect template at the type declaration, having every instance of that type show the filtered field list.
  11. Instead of the inline "magic" comment, another option would be to have the definitions in a "hive" - be it flat file, database, registry or whatever.
  12. It is not ideal, I agree - but it is easy to introduce. If it fails, it fails - and you fix the comment, and it works. I like the .NET approach too, but it does add a bit of "ceremony" - but it definitively makes sense for frequently used complex classes.
  13. It was just an example of basic functions that could be applied. That said, some of the ancient APIs we rely on, are fixed length strings that are space padded. The idea was that whatever you can do in the evaluator today, should be possible to apply to the inspect format string.
  14. There is a diagram renderer here: https://www.bottlecaps.de/rr/ui - but it barfs on the first definition.
  15. I can't find a validator that will accept the Object Pascal Grammar.
  16. BTW - Is this file in EBNF format?
  17. @Attila Kovacs I am not sure why you think this would be slower than the current inspection view? Massaging the data for display is not that time consuming, considering you already are in a breakpoint situation - or are you thinking about applying it for a logging breakpoint?
  18. True, which is another reason to support something like this in the debugger.
  19. Lars Fosdal

    Problems with email confirmation

    @AlanScottAgain - Can't rename as there is an existing older AlanScott account already.
  20. Lars Fosdal

    Problems with email confirmation

    @Daniel - any known issues atm?
  21. Lars Fosdal

    Delphi on Windows 11 on MacBook Pro 16 (2021)

    For the M-series ARM CPUs, Windows 11 for ARM is the only viable option. Parallells' seamless Windows on MacOS solution is mindblowing. I am working on integration solutions using IBM App Connect Enterprise these days, so I've not been able to spend so much time with Delphi on the Mac as I'd like to. Our company is moving away from Delphi, and the current app portfolio has gone into care & maintenance mode and will in time be replaced with commercial shelf-ware, so my active Delphi time will be greatly reduced going forward. As for using Delphi under Win4ARM om M1 - compilation is not a problem, but I have not had time to test debugging on iOS/Android at all, so others must peep up about any eventual issues on that. Other than the debuggers of Delphi being in an awful state in general - as long as the VM is set up to reroute the USB connections correctly, I would not expect any issues. I went for Pro + 32Gb + 2TB as I don't expect to need those gfx cores. I'd opt for a 64Gb Pro if there was one, but only Max supports 64Gb. I have to say it is an awesome piece of HW - although - during the winter, I actually miss the heat from the Intel CPU on the Lenovo 😛 I'd opt for even more storage, but Apple are greedy AF.
  22. Lars Fosdal

    Announcement: Magenta Hardware Components

    Fixed that.
  23. Lars Fosdal

    Fill Class Variables from a table row??

    We do that for configuration data - it is basically like a key/value dictionary.
  24. Lars Fosdal

    Forum for Spring4D

    If they react at all.
  25. Lars Fosdal

    simple SFTP-like server for Windows?

    Does HFS support secure connections?
×