Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, July 28, 2010 1:53:42 AM(UTC)

Groups: Registered
Posts: 2


I have called save method of rastercodecs inside the thread.
  rasterCodecs.Save(rasterimage, targetLocation, rasterImageFormat, 1, 1, 1, 1, CodecsSavePageMode.Overwrite);
The save method is used to save the image into the specified target location.

While save function is running I stop the thread. The save function wasn't completed.

Now when i start the thread and try to save the image in the same location having same file name, the save method throw an exception "Not able to open file". It seems like while stopping the thread it didn't release the file.

Is this the proper way to use rastercodecs' save with thread or did i miss something?

Thanks in advanced.


Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, July 28, 2010 6:29:44 AM(UTC)

Adam Boulad  

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Yes, RasterCodecs is thread-safe.
Regarding the problem you facing, if you try to access the file (read file then write then close the file without using LEADTOOLS functions) and then terminate the thread using the same way, do you face the same problem?

Also, which LEADTOOLS version (15, 16.5, 17, etc.) are you using and what is the build number (version info) of the Leadtools.dll?
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.064 seconds.