This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, April 13, 2008 11:00:42 PM(UTC)
Groups: Registered
Posts: 1
I am tring to combine several image patches(image_patches) to a single RasterImage(result_image) using CombineFast command.
For each image patch(image_patches[i]), i create a thread which calls CombineFast to combine the path to the single RasterImage(result_image).
So that there are several threads run at the same time(i use a four-core cpu), and there lays a threading safety problem:
when i use IRasterMemoryFlags.Disk or Tiled to create the result_image, the result_image is totally confusion, but when use Mananged, the method can obtains the result desired.
In my opinion, when use Disk or Tiled, data of result_image is not fully load to Physical Memory, so while multi threads write to different part of it, the inconsistency occurs.
thanks for your help:)
#2
Posted
:
Monday, April 14, 2008 5:45:47 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I don't
think you're using v13, because the object names appear to be for version 14.x
of the toolkit. Which build (version info) of LEADTOOLS DLL files are you
using?
Also,
are the different threads trying to combine to the same RasterImage object at
the same time? If yes, you should not be doing it like this because the same
set of combine operations could have different results if you apply them in
different order. This means even if all operations succeed, and you're applying
them to the same image, the concurrency factor could cause corruption.
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.