Delphi: EInvalidOp exception, might just mean you have a use-after free...
Quite sometime I was researching spurious exceptions in a Delphi application, then finally replicated them in a unit test suite. One of them was occurring almost all of the time: EInvalidOp. It is one...
View ArticleJclRTTI: type has not type info
[WayBack] Any idea why we get this error, or even better, how to fix it : [dcc32 Error] JclRTTI.pas(663): E2134 Type ‘<void>’ has no type info We compile same c… – Tommi Prami – Google+ So the...
View ArticleSQL Server: RowVersion is not the same format as BigInt
A while ago, I needed to get RowVersion binary data out of SQL Server. People around me told me it is stored as BigInt. I luckily bumped into [WayBack] sql server – Cast rowversion to bigint – Stack...
View ArticleMuch Turbo Pascal history (via What is a Delphi DCU file? – Stack Overflow)
Editing [WayBack] What is a Delphi DCU file? – Stack Overflow for more historic correctness and adding links prompted me to archive some older material and search for some more, basically because while...
View ArticleODAC default install paths for Delphi 10.2 Tokyo
A few notes on the ODAC install: Download of x.x.x is at [WayBack] www.devart.com/odac/odac25.exe via [WayBack] www.devart.com/odac/download.html The 25 is DllSuffix minus trailing zero for Delphi 10.2...
View ArticleI wanted to know the loaded DLLs in a process like Process Explorer shows,...
In Windows, historically most people approach investigation GUI first. Having turned 50 a while ago, I am no exception. My real roots however are on the command-line and scripting: roughly 1980s Apple...
View ArticleDelphi: creating copies of installed components to repositories for...
Often it is useful to have 3rd party components part of a repository so it is easier to increase portability. For instance when you want to include or exclude some of them in certain projects by...
View ArticleFigure out access violation in Dsmtoolwindow.GetPreferences
Access violation when loading the Delphi IDE Got the below error on Delphi 10.2 Tokyo with ODAC trial from DevArt at Delphi startup time (Error: Access violation at address 188F3528 in module...
View Articlemsbuild build events can inherit, but not add in addition to inherited build...
Bummer: I tried to inherit the build events from a base configuration, then add some extra steps for some of the inheriting configurations. Those configurations just executed the extra steps, not the...
View ArticlePorting old code: Delphi compiler error E2064 Left side cannot be assigned to
Quoting this in full because it nicely illustrated the introduction of an intermediate variable that cannot be assigned to a second time after initial setup by the with statement: [WayBack] Embarcadero...
View ArticleDevart ODAC product versions (Oracle Data Access Components History)
ODAC version history is confusing wheres [WayBack] Oracle Data Access Components – FAQ talks about version 6.00, [WayBack] Oracle Data Access Components History talks about version 10.x.y. The history...
View Articlec++ – DLL Load Library – Error Code 126 – Stack Overflow: use Process...
In addition to [WayBack] c++ – DLL Load Library – Error Code 126 – Stack Overflow while debugging LoadLibrary error 126 Windows dll error 126 can have many root causes. The most useful methods I have...
View ArticleDelphi: Passing build variables to batch files; I think the easiest is to use...
A long time ago, I wrote about Delphi prebuild/prelink/postbuild events. In practice, especially that you cannot inherit build events, then add new ones (), it is convenient to put all you need in a...
View ArticleWho maintains GExperts · GitHub?
I wnder who maintains [WayBack] GExperts · GitHub: GExperts has 4 repositories available. Follow their code on GitHub. It has not been updated for about 5 years, but contains some important bits....
View ArticleDelphi: some notes on HModule while tracking down an access violation in...
Too bad the whole mechanism involving TRegGroups.UnregisterModuleClasses is not documented anywhere It is the underlying storage to support TClassFinder, which was introduced in Delphi 6, documented...
View ArticleDelphi: .dproj TargetedPlatforms bit flags in main PropertyGroup, and...
For cleanup of .dproj files, I want to know the bit flags that TargetPlatforms can have. TL;DR: .dproj content management in Delphi is a mess For future reference empiric values for the flags that...
View ArticleDelphi: When porting really old code from versions that did not have .dproj...
I have been bitten by this a few times too much, so time to write it down: When porting old Delphi code from the Delphi 7 and older era, the options were stored .dof (options) and .cfg (configuration)...
View ArticleDelphi Basics : FindCmdLineSwitch command07
Since I keep forgetting about this, and there is the Embarcadero documentation for it has had no examples added in Delphi 2007 or later: [WayBack] Delphi Basics : FindCmdLineSwitch command Example code...
View ArticleODAC undocumented exception ‘Need Oracle 8 Call Interface’
I got this when taking over maintenance of some legacy code that called a stored procedure in a : --------------------------- Debugger Exception Notification --------------------------- Project...
View ArticleODAC: calling SYS.DBMS_SESSION.SET_NLS failing with ORA-06550/PLS-00103
Do not call SYS.DBMS_SESSION.SET_NLS with an instance of the [Archive.is] TOraStoredProc Class, as under the hood, it will translate the call to this:...
View Article