Page 1 of 1

Bulk Insert access violation in 6.3.11

Posted: Mon 25 Apr 2016 17:12
by FredS
Project PA.exe raised exception class $C0000005 with message 'access violation at 0x00d23de8: read of address 0x00000000'.
Callstack:

Code: Select all

DBAccess.TDBAccessUtils.CheckArrayType($7952890,ftLargeint)
DBAccess.TDAParam.CheckArrayType(ftLargeint)
DBAccess.TDAParam.SetValueCount(2000)
DBAccess.TDAParams.SetValueCount(2000)
ThreadModule.TThreadDM.DataModuleCreate($3F405C0)
DBAccess Line: 17129

Code: Select all

  if Params.Owner is TCustomDASQL then
    if not GetICommand...
One more thing, to compile with source I constantly need to this to DAC.inc:

Code: Select all

{$T-} { Typed @ operator }
{$Z1} { Minimum enum size }
{$A+} { Padding to align a Field }
{$I+} { enables or disables the automatic code generation that checks the result of a call to an I/O procedure }
{$X+} { Extended syntax }
{$H+} { Use long strings by default }
{$J+} { Writeable structured consts }
{$R-} { Range-Checking }
{$U-} { Pentium-safe FDIV operations }
{$Q-} { Overflow checking }
{$P+} { Open String Parameters }
{$V+} { Var-string checking }
{$YD} { Symbol declaration and cross-reference information: D=Default }
{$INLINE ON} { Must Be ON }
{$DEFINE UNIDAC} { Must be Defined }
{$DEFINE UNIDACPRO} { Must be Defined }
It would be helpful if you added the required settings to DAC.inc so that anyone NOT using your defaults can compile with source.

Re: Bulk Insert access violation in 6.3.11

Posted: Wed 27 Apr 2016 13:01
by azyk
Thank you for the information. We have reproduced and fixed this issue. We will try to upload the new UniDAC version with this fix tomorrow.

You can leave a suggestion to add the mentioned defines and directives to UniDAC version with source code at our UserVoice page ( https://devart.uservoice.com/forums/104 ... components ). If the suggestion collects enough votes, we will consider the possibility to implement it.

Re: Bulk Insert access violation in 6.3.11

Posted: Thu 28 Apr 2016 15:20
by FredS
azyk wrote:You can leave a suggestion to add the mentioned defines and directives to UniDAC version with source code at our UserVoice page ( https://devart.uservoice.com/forums/104 ... components ). If the suggestion collects enough votes, we will consider the possibility to implement it.
If this is a feature request then you may want to update your instructions in ReadmeSrc.html for those who don't use your compiler directive settings:
NOTE: To compile UniDAC based Delphi 10.1 Berlin applications, add the UniDAC\Source directory to "Library Path" for all platforms you want to work with (32-bit Windows, 64-bit Windows, Mac OS, iOS simulator, iOS device, Android).

Re: Bulk Insert access violation in 6.3.11

Posted: Thu 05 May 2016 09:44
by azyk
We develop source versions of DAC-products for assembling them in RAD Studio with default settings. Therefore, if your Studio settings differ from default ones, you need to change them back to default values on your own for installing UniDAC from source.