Crash in TOracleFieldInfo.RealDataSize (Field = nil)

mglass

Member
I have an application that I am testing in Delphi 2010, using DOA 4.1.2.2 (connecting to Oracle 12.2). The form I have a problem with is littered with TOracleDataSets, with a several lookup fields, etc, with lots of Active/Refresh manipulation when the form loads.

On all datasets, the string fields are TWideStringField, and I consistently get a crash on a lookup string field in TOracleFieldInfo.RealDataSize, when it tries to use Field and the value is nil. I don't know if that's unexpected, but most of the other TOracleFieldInfo functions check Fieldnil.
(On a different form I was able to resolve an apparently similar crash by increasing the Size value.)

I also tried the same project in Delphi Rio 10.3 with DOA 4.1.3.5, and it crashed in the same way.

I will try to get a simple test case, but I'm not sure how feasible that will be. Any ideas or workarounds would be helpful.

Thanks,
Martin
 
It seems the error is caused when you have a lookup field defined which has the same FieldName as a column in the select statement (with no TField defined for that column).

I have a minimal project that reproduces the problem (if needed).

Martin
 
Back
Top