LEADTOOLS Support
General
LEADTOOLS SDK Examples
Is Save method of rastercodecs a Threadsafe?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, July 28, 2010 1:53:42 AM(UTC)
Groups: Registered
Posts: 2
Hi,
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.
RameshPasa
#2
Posted
:
Wednesday, July 28, 2010 6:29:44 AM(UTC)
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?
LEADTOOLS Support
General
LEADTOOLS SDK Examples
Is Save method of rastercodecs a Threadsafe?
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.