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

Cannot compile 0.26.4 under Delphi XE3

Started by krapotkin, 26 December 2012, 07:21:29

Previous topic - Next topic

krapotkin

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?

Galfar

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.

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name:
Email:

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

SMF spam blocked by CleanTalk