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
 Problem saving file in ImageEn's native format

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 - May 17 2013 : 03:39:33
This problem is very random.

I have observed that when we save a file which has multiple layers in ImageEn's own native format at time the file just does not get saved.

But if we resave the file it gets saved properly.

Why must this be happening?

As I said before this problem is random and it is not possible to duplicate it.

It was actually reported by a customer who is using a software in which I am using ImageEn for handling images and their processing.

TIA

Yogi Yang


Yogi Yang
5   L A T E S T    R E P L I E S    (Newest First)
fab Posted - May 20 2013 : 08:31:05
Please send the resulting file (or post the hex content).
yogiyang Posted - May 20 2013 : 08:28:45
Onitsavesaround4bytes!


Yogi Yang
fab Posted - May 20 2013 : 08:06:51
Do you get a zero-sized file?
yogiyang Posted - May 20 2013 : 08:05:03
No I have now wrapped the file saving code in try..except block.

But then I am not getting any errors while saving the file.

If I re-save the file it gets saved OK!

Regards,

Yogi Yang


Yogi Yang
fab Posted - May 20 2013 : 02:16:18
Unfortunately it can be caused by several factors.
SaveToXXX methods are composed by sequences of Stream.Write calls. They can fail (raising exceptions) when a network share is not available, on disk problems (full, not enough rights...), etc...
Have you surrounded SaveToXXX by an empty try..except?