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
 TImageEnView.IO.SaveToFile return AFTER f. exists?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

862 Posts

Posted - Jun 19 2021 :  19:39:52  Show Profile  Reply
I save an image file from ImageEnView with this code:

ImageEnView1.IO.SaveToFile(aFileName);


But it returns too early. How can I make sure it returns only AFTER the file has been really created and it exists in the file system?

xequte

38196 Posts

Posted - Jun 20 2021 :  01:56:33  Show Profile  Reply
Hi Peter

Assuming AsyncMode is false, then it won't return until after the save operation completes.

https://www.imageen.com/help/TImageEnIO.AsyncMode.html

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