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? |