Vampyre Imaging Library Forum

Imaging Category => Bugs And Other Insects => Topic started by: krapotkin on 26 December 2012, 07:21:29

Title: Cannot compile 0.26.4 under Delphi XE3
Post by: krapotkin on 26 December 2012, 07:21:29
I'm trying to compile the library  under Delphi XE3

Code (pascal) Select

procedure TSingleImage.Assign(Source: TPersistent);
begin
  if Source = nil then
  begin
    Create;
  end

Compiler shows error:
[dcc32 Error] ImagingClasses.pas(583): E2382 Cannot call constructors using instance variables

but builddemos.bat and buildLibrary.bat does their work without any error (

what do I do wrong?
Title: Re: Cannot compile 0.26.4 under Delphi XE3
Post by: Galfar on 3 January 2013, 20:20:17
You are not doing anything wrong.
Compiler in XE3 is just more strict and does not allow calling constructors inside instances.

builddemos.bat and buildLibrary.bat probably uses older Delphi version that you have installed (do you?).

Solution is to use latest version of Imaging from here http://galfar.vevb.net/imaging/smf/index.php/topic,806.0.html
or use older Delphi version or FPC.