Too bad the Delphi IDE does not find the formatter settings when searching...
IDEs drive me nuts, including the Delphi IDE. Searching for Margin or Setting only reveals the margin and gutter setting, not the formatter settings. So you have to remember this is in the “Formatter”,...
View Article“Delphi”“Data provider or other service returned an E_FAIL status”“NVARCHAR”–...
For my link archive: [Archive.is] “Delphi” “Data provider or other service returned an E_FAIL status” “NVARCHAR” – Google Search In this case it was while reading data. Cause yet unknown, as over time...
View ArticleXMLDoc Delphi source code documentation generation – some links
There is very little information on how to use the XMLDoc documentation formatting in your Delphi source code. So here are some links for me to get started: [WayBack] XMLDoc Delphi source code...
View Articledelphi – Is it possible to define {$IFDEF} for more than one directive at...
[WayBack] delphi – Is it possible to define {$IFDEF} for more than one directive at once? – Stack Overflow: use the {$IF Defined(xxx)} directive which allows boolean expressions like: {$IF Defined(xxx)...
View Article“No mapping for the Unicode character exists in the target multi-byte code page”
Usually when I see this error [Wayback] “No mapping for the Unicode character exists in the target multi-byte code page” – Google Search, it is in legacy code that uses string buffers where decoding or...
View ArticleDCOM calls from thread pool threads: CoInitialize/CoUnitialize location and...
Interesting takeaway from [WayBack] DCOM calls from thread pool threads call CoInitialize* at the start, and call CoUninitialize before returning. Expensive, but necessary Related: [WayBack] 123683 –...
View ArticleDelphi interface generic function – Is there a work around? – Stack Overflow
The documentation simply states “no”, without explaining why. Luckily, there is [WayBack] David Heffernan at [WayBack] Delphi interface generic function – Is there a work around? – Stack Overflow...
View ArticleTuple class and records in the Spring4D framework
The Spring Framework for Delphi has some cool tuple support. The [WayBack] Tuple class has 3 create methods that build generic Tuple<> records with 2, 3 and 4 fields: [WayBack] class function...
View ArticleDelphi: TArray of T versus TArray; a function can return the latter, but not...
I wish I had blogged about this a lot sooner, as then far less people would use var aFoo: array of TFoo as method parameters for results that are just out parameters and could be a function result. You...
View ArticleDelphi: bumped into System.Classes.TLoginCredentialService while doing a...
Doing a “DefaultUsrPwDm” – Google Search, I bumped into the System.Classes.TLoginCredentialService class. There is hardly any documentation. It was introduced as [WayBack]...
View ArticleSetProcessWorkingSetSize: you hardly – if ever – need to call this from your...
There are quite a few posts that recommend using SetProcessWorkingSetSize to trim your process working set, usually in the SetProcessWorkingSetSize(ProcessHandle, -1, -1) form: [WayBack]...
View ArticleE2213 Bad packaged unit format: ..\xxxxx.dcp.yyyy – Expected version: 32.0,...
On my research list I have seen this happen with various libraries, but only libraries that deliver a single set of .bpl/.dcp files that you require for both debug and release builds. The error occurs...
View Articledelphi – How to enable wirecompression on Firebird 3.0 – Stack Overflow
For my link archive: [WayBack] delphi – How to enable wirecompression on Firebird 3.0 – Stack Overflow [WayBack] delphi – How to enable WireCompression on Firebird 3.0 using FireDAC – Stack Overflow...
View ArticleDelphi Tokyo binary BPLs not finding...
If you get errors loading BPLs that indicate this method cannot be found: “@System@Net@Httpclient@Win@TCertificateStore@$bcctr$qqrv” then it is likely you run Delphi 10.2.2. Upgrade to Delphi 10.2.3 to...
View ArticleChromium Embedded Framework – some links
For my link archive: Chromium Embedded Framework – Wikipedia Supported languages [WayBack] chromiumembedded / cef — Bitbucket [WayBack] GitHub – cefsharp/CefSharp: .NET (WPF and Windows Forms) bindings...
View ArticleSome OmniThreadLibrary notes and links
For my link archive: Repository: [WayBack] GitHub – gabr42/OmniThreadLibrary: A simple and powerful multithreading library for Delphi My fork for pull requests: [WayBack] GitHub –...
View Articleinheritance – Delphi: How to call inherited inherited ancestor? – Stack Overflow
Officially, the answer to [WayBack] inheritance – Delphi: How to call inherited inherited ancestor? – Stack Overflow is that you can’t on the language level as I explained in my answer You can’t in a...
View ArticleSome links for detecting memory leaks from individual DUnit test methods
[WayBack] DUnit: Xtreme Unit Testing for Delphi / SVN / [r44] /trunk/readme-fastmm.txt You have to build your DUnit GUI-testrunner with the FASTMM and ManualLeakReportingControl directive. This will...
View ArticleSome useful FastMM related methods to track memory usage
Below, for my link archive, some searches and relevant posts on FastMM related method calls to track or report memory usage. Searches: LogMemoryManagerStateToFile FastGetHeapStatus {Returns summarised...
View Articleconsole – When is System.IsConsole true in Delphi? – Stack Overflow
Some highlights from [WayBack] console – When is System.IsConsole true in Delphi? – Stack Overflow: Project/Options/Linking/Generate console application and {$APPTYPE CONSOLE} are two separate things....
View Article