Memory Errory detected by FastMM in DirectMode

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
b-b
Posts: 10
Joined: Fri 19 Jul 2013 11:09

Memory Errory detected by FastMM in DirectMode

Post by b-b » Fri 19 Jul 2013 11:39

Hello,

FastMM detects a memory error in the new ODAC Version 9.0.2.
It occurs in DirectMode with String-Parameter Assignemt (GetMaxStringSize call).
I can provide a test application if needed.

Could you fix it, please.

Kind regards,


Bernd

The FastMM log:
--------------------------------2013/7/19 13:15:39--------------------------------
FastMM hat einen Fehler entdeckt während einem / einerFreeMem Operation. Das Block-Ende ist defekt.

Die Blockgröße ist: 15

This block was allocated by thread 0xCDC, and the stack trace (return addresses) at the time was:
404AD9
40A226
40A302
5D6680 [CLRClasses.pas][CLRClasses][CLRClasses.Encoding.GetBytes][711]
5D6713 [CLRClasses.pas][CLRClasses][CLRClasses.Encoding.GetBytes][724]
6C168B [OraNet][OraNet][OraNet.N_264.N_488]
6CB354 [OraNet][OraNet][OraNet.N_875]
6EFB37 [OraClasses.pas][OraClasses][OraClasses.TOCIConnection.GetMaxStringSize][3390]
6F1860 [OraClasses.pas][OraClasses][OraClasses.TOCIConnection.GetProp][4237]
68AD28 [DBAccess.pas][DBAccess][DBAccess.TCustomDASQL.AssignParam][14445]
73886A [Ora.pas][Ora][Ora.TOraSQL.AssignParam][8763]

Der Block wird momentan für eine Objektklasse benutzt Unbekannt

The allocation number is: 5315

The current thread ID is 0xCDC, and the stack trace (return addresses) leading to this error is:
404A86
40A456
6C16E9 [OraNet][OraNet][OraNet.N_264.N_488]
6CB354 [OraNet][OraNet][OraNet.N_875]
6EFB37 [OraClasses.pas][OraClasses][OraClasses.TOCIConnection.GetMaxStringSize][3390]
6F1860 [OraClasses.pas][OraClasses][OraClasses.TOCIConnection.GetProp][4237]
68AD28 [DBAccess.pas][DBAccess][DBAccess.TCustomDASQL.AssignParam][14445]
73886A [Ora.pas][Ora][Ora.TOraSQL.AssignParam][8763]
68A80F [DBAccess.pas][DBAccess][DBAccess.TCustomDASQL.WriteParams][14332]
6797C5 [DBAccess.pas][DBAccess][DBAccess.TCustomDADataSet.OpenCursor][7256]
734E40 [Ora.pas][Ora][Ora.TOraDataSet.OpenCursor][7025]

Aktueller Speicherauszug von 256 Bytes, beginnend ab Zeigeradresse 7FF10DE0:
00 00 00 00 07 00 00 00 4F 72 61 63 6C 65 38 00 2D BE 7B DD DD DD DD DD 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
. . . . . . . . O r a c l e 8 . - ¾ { Ý Ý Ý Ý Ý . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Fri 19 Jul 2013 12:31

Hello,

Please send us a small example or a snippet of code reproducing the issue at alexp*devart*com. Please also specify your IDE version

b-b
Posts: 10
Joined: Fri 19 Jul 2013 11:09

Re: Memory Errory detected by FastMM in DirectMode

Post by b-b » Sun 21 Jul 2013 20:38

Have you received it?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Mon 22 Jul 2013 07:26

Hello,

Thank you for the information. We have reproduced the problem and will fix it as soon as possible.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Mon 22 Jul 2013 08:22

Hello,

We have already fixed this problem. This fix will be included in the new version

b-b
Posts: 10
Joined: Fri 19 Jul 2013 11:09

Re: Memory Errory detected by FastMM in DirectMode

Post by b-b » Mon 22 Jul 2013 09:52

Hello,
when do you plan to release the new version?
Could we get a patched 9.0.2?

Kind regards,


Bernd

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Mon 22 Jul 2013 10:00

Hello,

Please send me your license number and e-mail to alexp*devart*com in order for me to send you the fixed version of ODAC. Also, please specify your version of the IDE.

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Re: Memory Errory detected by FastMM in DirectMode

Post by a-s-z » Mon 22 Jul 2013 10:09

Hi Alex,
AlexP wrote:Hello,

Please send me your license number and e-mail to alexp*devart*com in order for me to send you the fixed version of ODAC. Also, please specify your version of the IDE.
please send fixed version for XE2 to me (Bernd and me are working together).
When you will release next official build?

BTW: With current version I am getting compilation error when trying to build UniDac.
This is the log:

Code: Select all

dclcrcontrols160.dpk(38)
317 Zeilen, 0.30 Sekunden, 6004 Byte-Code, 188 Byte-Daten.
Embarcadero Delphi für Win32 Compiler-Version 23.0
Copyright (c) 1983,2011 Embarcadero Technologies, Inc.
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\IdeVer.inc(195)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\Dac.inc(191)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\UniDac.inc(16)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\UniConsts.pas(43)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\IdeVer.inc(195)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\Dac.inc(191)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\UniDac.inc(16)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\DacVer.inc(9)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\UniDacVer.inc(13)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\Uni.pas(348) Fehler: E2170 Eine nichtvirtuelle Methode kann nicht überschrieben werden
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\Uni.pas(349) Fehler: E2170 Eine nichtvirtuelle Methode kann nicht überschrieben werden
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\IdeVer.inc(195)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\Dac.inc(191)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\UniDac.inc(16)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\UniSQLMonitor.pas(80)
C:\Programme\Develop\UniDAC for RAD Studio XE2\Source\Uni.pas(1530) Schwerwiegend: F2063 Verwendete Unit 'UniSQLMonitor.pas' kann nicht compiliert werden
Any hints? The methods are declared virtual/override in source code.

Kind regards,
Andre

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Thu 25 Jul 2013 08:27

Hello,

Most probably, you have old *.bpl, *.dcu, *.pas, etc., files remained. Please delete all the old files and try reinstalling UniDAC once more.

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Re: Memory Errory detected by FastMM in DirectMode

Post by a-s-z » Fri 26 Jul 2013 09:18

AlexP wrote:Hello,

Please send me your license number and e-mail to alexp*devart*com in order for me to send you the fixed version of ODAC. Also, please specify your version of the IDE.
please send fixed binary and source for XE2 to me (Bernd and me are working together).
When you will release next official build?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Mon 29 Jul 2013 08:09

Hello,

I have sent you a fixed ODAC version with source code

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Re: Memory Errory detected by FastMM in DirectMode

Post by a-s-z » Thu 22 Aug 2013 06:20

Hi Alex,
AlexP wrote:Hello,

I have sent you a fixed ODAC version with source code
Unfortunatly I did not receive anything yet :(

Please contact me by mail at my company address. Thanks.

Best regards,
Andre

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Thu 22 Aug 2013 09:42

Hello,

I have sent you the fixed ODAС once more.

a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Re: Memory Errory detected by FastMM in DirectMode

Post by a-s-z » Thu 22 Aug 2013 12:17

Hi Alex,
AlexP wrote:Hello,

I have sent you the fixed ODAС once more.
I have received no mail yet, I sent you a mail from my company address. Please reply without attaching anything. We have to find out, where the mails get lost.

Best regards,
Andre

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Memory Errory detected by FastMM in DirectMode

Post by AlexP » Fri 23 Aug 2013 08:36

Hello,

I've sent you an empty letter

Post Reply