ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Data Error opening Layer Files
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Dec 08 2015 :  04:06:20  Show Profile  Reply
Hello,

While developing a software, it came to my notice that files saved from ImageEn's routine: LayersSaveToFile gives data error while opening such files.

Let me try and explain.

I have developed the main software in XE6 and it is working fine. I am able to save files using LayersSaveToFile function and also load them using LayersLoadFromFile function.

I am maintaining the source of my software in two different version of Delphi.
1. D2007 and 2. XE6.

If I try to open files saved by the executable generated by XE6 in the executable generated by D2007. I get the Data Error message and the file in question that Delphi IDE shows is iezlib at line # 386 (raise EZDecompressionError.Create(z_errmsg[2 - code]);)

Here is the screen shot of the error message that I receive.




TIA




Yogi Yang

xequte

38948 Posts

Posted - Dec 08 2015 :  16:50:12  Show Profile  Reply
Hi Yogi

What is the version of ImageEn on both delphi versions? Can you please attach an example of the file saved by your XE6 executable.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Dec 08 2015 :  23:01:02  Show Profile  Reply
ImageEn version is 6.2.1 on both Delphi.

The code fragment that I am using is in XE6 to save the file:
MainForm.ImageEnViewMain.LayersSaveToFile('c:\tmp\YogiTest001\0002.ams');

Here file extension is .ams

The code in Delphi 2007 for loading the file is:
ImageEnViewMain.LayersLoadFromFile('c:\tmp\YogiTest001\0002.ams');



TIA

Sample file:
attach/yogiyang/201512822568_0002.zip
1595 KB


Yogi Yang
Go to Top of Page

xequte

38948 Posts

Posted - Dec 09 2015 :  21:54:31  Show Profile  Reply
Hi Yogi

Your file loads as corrupted in both D2007 and XE6, but I can't reproduce when I try to do the same.

So I suspect that is something odd is happening with your XE6 installation. Presumably you have an older version of iezlib.pas on your path.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: