Search found 753 matches

by aehimself
16.03.2023, 19:47
Forum: ZeosLib 7.2 Forum
Topic: Topic about possible Memory leak in ZDbcIntfs
Replies: 4
Views: 399

Re: Topic about possible Memory leak in ZDbcIntfs

It won't leak, it's an interface: private FDriversCS: TCriticalSection; // thread-safety for FDrivers collection. Not the drivers themselves! FLogCS: TCriticalSection; // thread-safety for logging listeners FDrivers: IZCollection; FLoggingListeners: IZCollection; FGarbageCollector: IZCollection;
by aehimself
16.03.2023, 07:54
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

Have you checked if your errors persist after disabling ASLR and rebuilding the entire ZEOS and application? I reproduced an issue in a 32-bit test application which is not affected by ASLR. Mark's right and it might be related to record field alignment - this can be easily confirmed by changing it...
by aehimself
09.03.2023, 15:07
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

Is this the record alignment we are talking about? RecordAlignment.PNG If this can be changed from project options it's not a bug, it was a decision by Embarcadero and we should use conditional directives to readjust our buffers accordingly - IF this is the only problem it is raising. In the mean ti...
by aehimself
06.03.2023, 20:59
Forum: ADO
Topic: MsSql 2008 nvarchar(max) problem
Replies: 12
Views: 1153

Re: MsSql 2008 nvarchar(max) problem

If even special characters can be read back correctly after updating I'm wondering if it's an initial encoding issue.
What is the result of Field.AsBytes (I hope FPC has it...?)
by aehimself
06.03.2023, 15:58
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

Delphi 11.2 defaulted to the wrong DCP folder afaik which could be manually fixed (https://en.delphipraxis.net/topic/7434- ... ment=62811).

I had that issue fixed by hand, currently I'm on 11.3 where this was already fixed.
by aehimself
06.03.2023, 08:46
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

The problem is not the application - it's the data. From what I saw a large amount of VarChar fields in a large amount of records will trigger it however - the data I'm using for testing is however obfuscated it's still proprietary and might still resemble to real-world data... exporting and sharing...
by aehimself
04.03.2023, 23:08
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

Either MadExpect's buffer underrun / overrun protection does not work or FastMM's is faulty. First time in my life I tried FastMM with FullDebugMode and I'm getting popup after popup when connecting to an Oracle database using UTF16. That has nothing to do with the x64 issue we both discovered but y...
by aehimself
04.03.2023, 19:31
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

This won't fix the AV. I already tried with 10000 the size of the whole equation, still being thrown. Btw, I suspect that instead of multiplying by 2 here, ub4 has to be NativeUInt instead of Cardinal. Changing that requires changing half of Zeos, though (including other protocols) so I'm either uns...
by aehimself
04.03.2023, 19:28
Forum: Oracle
Topic: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs
Replies: 13
Views: 1007

Re: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs

Confirmed in viewtopic.php?f=50&t=179882 that this is indeed a x64 issue.
by aehimself
04.03.2023, 18:34
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

I can confirm, that building a 32bit application and using the 32 bit 21.7 oci.dll no AV and no "user requested..." exception is being raised when using LobCacheMode = lcmOnLoad when opening the exact same dataset.
by aehimself
03.03.2023, 23:37
Forum: Oracle
Topic: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs
Replies: 13
Views: 1007

Re: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs

I can see lcmOnLoad handled in TZOracleRowAccessor (which is created by TZOracleCachedResultSet) so I attempted to get rid of creating a native TZCachedResultSet in TZAbstractOracleStatement.CreateResultSet... no success. However, before receiving the "User requested to abort" exception, D...
by aehimself
03.03.2023, 23:08
Forum: ZeosLib 7.3/8.0 Forum
Topic: Possible issue with 64bit Oracle
Replies: 43
Views: 2197

Re: Possible issue with 64bit Oracle

Welcome to the club. Something is definitely not right with Oracle. https://zeoslib.sourceforge.io/viewtopic.php?f=37&t=175546 https://zeoslib.sourceforge.io/viewtopic.php?f=37&t=152220 https://zeoslib.sourceforge.io/viewtopic.php?f=37&t=137189 https://zeoslib.sourceforge.io/viewtopic.ph...
by aehimself
03.03.2023, 10:41
Forum: Oracle
Topic: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs
Replies: 13
Views: 1007

Re: LobCacheMode: OnLoad, OCI 21.7 fails to load CLOBs

21.9 is also affected. EZSQLException was raised with the message SQL Error: ORA-01013: user requested cancel of current operation Code: 1013 SQL: OCILobClose Stack trace: 00d71152 MyApplication.exe ZDbcOracle 1388 TZOracleConnection.HandleErrorOrWarning 00d4468c MyApplication.exe ZDbcOracleResultSe...
by aehimself
28.02.2023, 09:51
Forum: ZeosLib 7.3/8.0 Forum
Topic: Zeos 7.3 testers-thread
Replies: 286
Views: 46679

Re: Zeos 7.3 testers-thread

Compiles just fine with 11.3 Alexandria.
Basic stuff (establishing a connection, executing SELECT queries) also successful on MySQL, MSSQL and Oracle.
by aehimself
07.02.2023, 21:07
Forum: MySQL
Topic: TZSQLMetaData mdExportedKeys = access violation?
Replies: 15
Views: 1308

Re: TZSQLMetaData mdExportedKeys = access violation?

I don't know if it actually worth it, but PK name can also be determined with a single join in imported, exported keys and cross reference. I included them just for the heck of it, but they always return 'PRIMARY' so idk :) If you wish to include it, it's in a new pull request . And now I stop with ...