-
Content Count
277 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Jacek Laskowski
-
[Spring4D] Remove collection elements
Jacek Laskowski posted a topic in RTL and Delphi Object Pascal
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>? -
Removal of startup Plug-In in Delphi Rio
Jacek Laskowski replied to bazzer747's topic in Tips / Blogs / Tutorials / Videos
I use this option for years, without problems. -
Removal of startup Plug-In in Delphi Rio
Jacek Laskowski replied to bazzer747's topic in Tips / Blogs / Tutorials / Videos
@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." -
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."
-
Very interesting tool! Maybe Emba should consider writing a plugin to support Delphi?
-
This is Spar.... Embarcadero! 😉
-
HTML Library limited offer
Jacek Laskowski replied to Alexander Sviridenkov's topic in Delphi Third-Party
I downloaded hcldemo.zip again, but db still not found. --- after some time --- Now is ok, thanks. -
HTML Library limited offer
Jacek Laskowski replied to Alexander Sviridenkov's topic in Delphi Third-Party
Happy birthday. but when I download and run demo I get exception on db connection (bad path): -
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
-
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.
-
http://docwiki.embarcadero.com/Libraries/Rio/en/FireDAC.Comp.DataSet.TFDDataSet.SaveToStream
-
WinRT is dead
-
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
-
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?
-
FastMM Full Debug Mode and JCL problem
Jacek Laskowski posted a topic in RTL and Delphi Object Pascal
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? -
FastMM Full Debug Mode and JCL problem
Jacek Laskowski replied to Jacek Laskowski's topic in RTL and Delphi Object Pascal
Thanks, I actually had two versions of the file on different paths. -
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.
-
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?
-
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.
-
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 😉
-
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.
-
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;
-
In multithread application you must use separated connection per thread.
-
TArray vs TList with VirtualStringTree
Jacek Laskowski replied to Mike Torrettinni's topic in Algorithms, Data Structures and Class Design
Why can't I find PList property in TList<T> of Delphi 10.3.2? Where exactly is it hidden? -
refactoring Is there a way to get the IDE to generate interface methods
Jacek Laskowski replied to Larry Hengen's topic in RTL and Delphi Object Pascal
Delphi is very backward when it comes to coding and refactoring support tools.- 8 replies
-
- interfaces
- ide
-
(and 1 more)
Tagged with: