Jump to content

Jacek Laskowski

Members
  • Content Count

    277
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Jacek Laskowski

  1. I have a spring collection, like a IList<T>. I need to remove all items from it that meet the condition: type TFoo = interface function Value : Integer; end; var List : IList<TFoo>; begin i := 0; while i < List.Count do begin if List[i].Value < 100 then List.Delete(i) else Inc(i); end; end; Can it be done faster, better? And how can I do that for IDictionary<K, V>?
  2. Jacek Laskowski

    Removal of startup Plug-In in Delphi Rio

    I use this option for years, without problems.
  3. Jacek Laskowski

    Removal of startup Plug-In in Delphi Rio

    @Vandrovnik Please add: " Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Embarcadero\BDS\19.0\Editor] "DefaultFileFilter"="Borland.FileFilter.UTF8ToUTF8" After setting this value Delphi will encode new units in UTF-8 with BOM."
  4. Jacek Laskowski

    Debugger in 10.3.3 is useless :'(

    Maybe you're using automatic inline? {$INLINE AUTO} from docs: "Behaves like {$INLINE ON}, with the addition that routines not marked with inline will be inlined if their code size is less than or equal to 32 bytes."
  5. Jacek Laskowski

    Sourcetrail support for Delphi

    Very interesting tool! Maybe Emba should consider writing a plugin to support Delphi?
  6. Jacek Laskowski

    RAD Studio 10.3.3 now available

    This is Spar.... Embarcadero! 😉
  7. Jacek Laskowski

    HTML Library limited offer

    I downloaded hcldemo.zip again, but db still not found. --- after some time --- Now is ok, thanks.
  8. Jacek Laskowski

    HTML Library limited offer

    Happy birthday. but when I download and run demo I get exception on db connection (bad path):
  9. Jacek Laskowski

    D10.2 Ideas/Thoughts on a project...

    Then you may want to consider creating a mailing queue based on e.g. pipes (or tcp/ip). So the DLL would be a server reading the queue/pipe, and the application in the Cobol would work as a client? I don't know what possibilities Cobol has and if it supports pipes api. https://docs.microsoft.com/en-us/windows/win32/ipc/pipes
  10. Jacek Laskowski

    D10.2 Ideas/Thoughts on a project...

    I don't think there is a specification of this format anywhere described (I haven't met it). But from what I understood you want to write data to XML in order to read them in the DLL, so why do you need to know the format? If you want to have XML for another purpose then you can create it yourself using any XML library.
  11. Jacek Laskowski

    D10.2 Ideas/Thoughts on a project...

    http://docwiki.embarcadero.com/Libraries/Rio/en/FireDAC.Comp.DataSet.TFDDataSet.SaveToStream
  12. Jacek Laskowski

    WinRT API Resources

    WinRT is dead
  13. Jacek Laskowski

    FDQuery, threads and CmdExecMode

    When I create FDQuery in threads, should I set CmdExecMode to amNonBlocking or leave amBlocking? http://docwiki.embarcadero.com/Libraries/Tokyo/en/FireDAC.Stan.Option.TFDResourceOptions.CmdExecMode
  14. Jacek Laskowski

    Firebird 3 and SP in Object Pascal

    Firebird 3 has very interesting possibilities. Among other things: "Object-oriented C++ APIs enable external code routines to plug in and run safely inside Firebird engine space, including (but not limited to): Encryption schemes for data User authentication schemes, including secure key exchange Eventually, plug-in support for stored procedures, triggers and functions written in Java, C++, ObjectPascal, etc." The quote comes from here: https://firebirdsql.org/file/documentation/release_notes/html/en/3_0/rnfb30-new-sumry.html I am particularly interested in the last point, the use of SP written in Delphi. Unfortunately, I haven't found a piece of code anywhere that would show how to do it. Does anyone know any documentation or examples?
  15. I wanted to compile a FullDebugMode library from FastMM project. It requires JCL library, I installed it using install.bat. However when compiling FastMM library I get a compilation error inside JCL: [dcc32 Error] JclSynch.pas(1078): E2010 Incompatible types: 'Cardinal' and 'Boolean' What am I doing wrong?
  16. Jacek Laskowski

    FastMM Full Debug Mode and JCL problem

    Thanks, I actually had two versions of the file on different paths.
  17. Jacek Laskowski

    MMX for Delphi 10.3 Rio

    However, saving an entity before editing does not always help, MMX rarely hangs, but it still happens. But I have new observation. If I manually add new property to the class, but without the getter and setter (as in the picture) and press the ctrl+E shortcut, first the question appears about adding accessor methods and only after clicking "Yes" MMX hangs.
  18. I now do the injection by the constructor, but this causes some constructors to be very complex. Is injecting by [inject] attribute directly into the object field a good practice? Is it better not to do it?
  19. Jacek Laskowski

    MMX for Delphi 10.3 Rio

    I don't use Mitov Library. I don't use any libraries working in design time, only a few experts: CnPack, GExpert, DocumentationInsight, Code Insight Plus and RFindUnit.
  20. Jacek Laskowski

    MMX for Delphi 10.3 Rio

    I'm not sure it's a good lead, but I have an observation related to the MMX suspension. If just before ctrl+E (entity edition) I press ctrl+S (save changes in files) I have no suspension, and every time MMX suspends Delphi I forget to press ctrl+S. This may be some kind of key 😉
  21. Jacek Laskowski

    MMX for Delphi 10.3 Rio

    Every now and then, irregularly, MMX kills my IDE (10.3.2). The Check Packages option is turned off - thanks to this hangs are much less frequent, but they have not disappeared. I am still using MMX version 15 and waiting for a fix.
  22. Jacek Laskowski

    FireBird, TFDConnection and concurrency

    No, he doesn't need to create TFDConnection, he can use TFDQuery alone and get the connection from the pool in it: FDQuery := TFDQuery.Create(nil); FDQuery.ConnectionName := RegisteredConnectionDefinitionString;
  23. Jacek Laskowski

    FireBird, TFDConnection and concurrency

    In multithread application you must use separated connection per thread.
  24. Jacek Laskowski

    TArray vs TList with VirtualStringTree

    Why can't I find PList property in TList<T> of Delphi 10.3.2? Where exactly is it hidden?
  25. Delphi is very backward when it comes to coding and refactoring support tools.
×