Author |
Topic |
|
progfin
Russia
5 Posts |
Posted - Jun 22 2011 : 04:05:31
|
I've tryied ImageEnVect.IO.LoadFromFilePNG( 'c:\Image\1.png' ); or for a stream... ImageEnVect.IO.LoadFromStreamPNG( aStream ); I traced and found out that it always end in the finalize statement of function
unit pngfilt;
procedure ReadPNGStream(Stream: TStream; Bitmap: TIEBitmap; var IOParams: TIOParams; var xProgress: TProgressRec; Preview: boolean); .... png_ptr := png_create_read_struct('1.2.14', Error_ptr, @ErrorFunc, @WarnFunc);
It work correctly in Delphi7, but it doesn't work at Delphi XE |
|
fab
1310 Posts |
Posted - Jun 22 2011 : 05:31:03
|
Compiling ImageEn, have you put the whole content of "libs.zip" in the same directory of ImageEn (where are the .pas files)?
This error occurs when Delphi links a different PNG library version than the one (1.2.14) supported by ImageEn. |
|
|
progfin
Russia
5 Posts |
Posted - Jun 22 2011 : 05:41:52
|
Yes, I've put the whole content of "libs.zip" in the same directory of ImageEn (where are the .pas files).
In Delphi7 and Delphi XE contens of imageEN folder are the same, except package-files (*.pgk, *.res and so on) |
|
|
progfin
Russia
5 Posts |
Posted - Jun 22 2011 : 05:48:50
|
*.bdsproj *.dpk *.dproj *.res *.dproj.local |
|
|
fab
1310 Posts |
Posted - Jun 22 2011 : 14:09:04
|
I just re-tested loading of PNG files (using LoadFromFilePNG) with version 3.1.2 and last libs.zip file, and, of course Delphi XE (15.0.3953.35171). It works.
Have you other third part components installed? |
|
|
progfin
Russia
5 Posts |
Posted - Jun 23 2011 : 00:17:19
|
I have 3.1.1 version of ImageEn and EmbarcaderoŽ DelphiŽ XE Version 15.0.3953.35171
I have installed TMS Component Pack v6.0.4.0 release Apr 30, 2011 and ImageEn. |
|
|
fab
1310 Posts |
Posted - Jun 23 2011 : 00:48:02
|
Please try to disable TMS components, temporarily. |
|
|
w2m
USA
1990 Posts |
Posted - Jun 23 2011 : 06:11:31
|
I have TMS Components installed along with ImageEn here and I do not have any problem loading png files, however, I generaly just use LoadFromFile.
William Miller |
|
|
fab
1310 Posts |
Posted - Jun 23 2011 : 06:41:00
|
Hi Bill! Do you have also Delphi XE? |
|
|
w2m
USA
1990 Posts |
Posted - Jun 23 2011 : 07:05:18
|
Whoops... I missed that... no I run Delphi 2010.
William Miller |
|
|
progfin
Russia
5 Posts |
Posted - Jun 23 2011 : 07:20:51
|
I have ununstall TMS and clean all files from TMS. And ImageEn works correctly.
Now will try to define ImageEn-path in "Options-Library Path" before TMS. |
|
|
|
Topic |
|