Page 1 of 1

Memory Errory detected by FastMM in DirectMode

Posted: Fri 19 Jul 2013 11:39
by b-b
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 . - ¾ { Ý Ý Ý Ý Ý . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Re: Memory Errory detected by FastMM in DirectMode

Posted: Fri 19 Jul 2013 12:31
by AlexP
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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Sun 21 Jul 2013 20:38
by b-b
Have you received it?

Re: Memory Errory detected by FastMM in DirectMode

Posted: Mon 22 Jul 2013 07:26
by AlexP
Hello,

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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Mon 22 Jul 2013 08:22
by AlexP
Hello,

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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Mon 22 Jul 2013 09:52
by b-b
Hello,
when do you plan to release the new version?
Could we get a patched 9.0.2?

Kind regards,


Bernd

Re: Memory Errory detected by FastMM in DirectMode

Posted: Mon 22 Jul 2013 10:00
by AlexP
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.

Re: Memory Errory detected by FastMM in DirectMode

Posted: Mon 22 Jul 2013 10:09
by a-s-z
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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Thu 25 Jul 2013 08:27
by AlexP
Hello,

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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Fri 26 Jul 2013 09:18
by a-s-z
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?

Re: Memory Errory detected by FastMM in DirectMode

Posted: Mon 29 Jul 2013 08:09
by AlexP
Hello,

I have sent you a fixed ODAC version with source code

Re: Memory Errory detected by FastMM in DirectMode

Posted: Thu 22 Aug 2013 06:20
by a-s-z
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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Thu 22 Aug 2013 09:42
by AlexP
Hello,

I have sent you the fixed ODAС once more.

Re: Memory Errory detected by FastMM in DirectMode

Posted: Thu 22 Aug 2013 12:17
by a-s-z
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

Re: Memory Errory detected by FastMM in DirectMode

Posted: Fri 23 Aug 2013 08:36
by AlexP
Hello,

I've sent you an empty letter