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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Data Error opening Layer Files

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Dec 08 2015 : 04:06:20
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 09 2015 : 21:54:31
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
yogiyang Posted - Dec 08 2015 : 23:01:02
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
xequte Posted - Dec 08 2015 : 16:50:12
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