Error in 7.0.4

The stable tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.
Post Reply
Coldzer0
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 27.07.2013, 18:48
Location: Egypt

Error in 7.0.4

Post by Coldzer0 »

in ZDbcSqLiteUtils.pas

line 259

Code: Select all

 Error := String(StrPas(PlainDriver.ErrorString(ErrorCode))); 
in XE4 make some Error

System.SysUtils.pas(11512): Related method: function StrPas(const PAnsiChar): AnsiString;

Fix :

Code: Select all

    {$IFDEF DELPHI12_UP}
      Error := String(System.AnsiStrings.StrPas(PlainDriver.ErrorString(ErrorCode)));
    {$ELSE}
      Error := String(StrPas(PlainDriver.ErrorString(ErrorCode)));
    {$ENDIF}
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Coldzer0,

thanks for the hint. Well 7.0.4 isn't 100% ready for XE4. Propose you download 7.1-Beta from SVN.

The best fix is simply to omit StrPas functions.. They are deprecated since D6. ):
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply