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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, April 13, 2008 11:00:42 PM(UTC)

aryanli  
aryanli

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:)

 

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 : Monday, April 14, 2008 5:45:47 AM(UTC)

Qasem Lubani  
Guest

Groups: Guests
Posts: 3,034

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.

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