• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Post reply

Other options

Shortcuts: ALT+S save/post or ALT+P preview

Topic summary

Posted by Galfar
 -  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.
Posted by krapotkin
 - 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?
SMF spam blocked by CleanTalk