Home | Translator | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter | Site Content Search
Loading...

GDPicture.NET - Thread Safe

General discussions about GdPicture.NET.

GDPicture.NET - Thread Safe

Postby mattewan » Tue Oct 06, 2009 2:54 pm

Hello Loic,

A few months ago i made a topic in regards to GDPicture throwing random exceptions when running multiple threads.

Back then you said that it would be thread safe in 3 months. However, its been a bit longer than that.

In the meantime i have (sort of) got around the problem by basically, lauching 4 threads on a quad core system, then creating synclocks on all non threadsafe methods, such as opening images, writting images. So basically, only 1 thread can open or close an image at once.

That means that any functions that are thread safe (pretty much anything that doesn't modify an image, such as getting information about it) will parallel process fine.

Is there any point where GDPicture.NET will be thread safe, or is it not on the cards.
mattewan
 
Posts: 22
Joined: Fri Apr 03, 2009 6:58 pm

Re: GDPicture.NET - Thread Safe

Postby Loïc » Tue Oct 06, 2009 3:33 pm

Hi,

We made lot of work on this way but everything is not terminated.
Unfortunately, I can't promise a 100% thread safe toolkit today for any date.
We have too many functions & plugins to rebuild & we need to break the current architecture. I hope GdPicture.NET 7.0 will be 100% thread safe with a 64bit release.

With best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: GDPicture.NET - Thread Safe

Postby mattewan » Wed Oct 07, 2009 12:08 pm

Hello Loic,

Thanks for the info on that.

In this case i can do work arounds instead, like launching 4 seperate programs on a pc, which communicate over tcp/ip to complete a queue of work.

Matt
mattewan
 
Posts: 22
Joined: Fri Apr 03, 2009 6:58 pm

Re: GDPicture.NET - Thread Safe

Postby mp285 » Thu Oct 15, 2009 6:29 pm

Hi,

I'm curious as to which functions aren't thread-safe.

My application (still in the middle of development) is using 3 threads;
1 to acquire images from the scanner and add them to a processing queue.
1 to process images from the queue (rotation/deskew/cropping/merging/etc...), and add to a save queue.
1 to save the processed images.

All 3 threads are using the same GdPicture object concurrently - and at the moment everything seems to be working fine.
I want to make sure I'm not going to break it as I add additional functionality! I'm just after a bit more clarification as to what is safe to use threads for, and what will cause problems.

Many thanks!

Mark
mp285
 
Posts: 5
Joined: Fri Jul 03, 2009 5:26 pm

Re: GDPicture.NET - Thread Safe

Postby Loïc » Tue Oct 20, 2009 12:04 pm

Hi,

Since 6.4.10 version, GdPicture.NET Core should be 100% thread safe. Work is in progress for plugins (OCR, PDF rasterizer, TWAIN acquisition).

If you have any issue related to multi-threading in GdPicture.NET feel free to report it on this discussion.


Cheers,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: GDPicture.NET - Thread Safe

Postby DennyR » Thu Jul 15, 2010 2:45 pm

Hello,

I guess there is a problem with thread safety.

I use the Version 6.7.5

I build a Function which instances a new GdPicture.GdPictureImaging class.
If I run more than one thread on this function, sometime it cause errors, because the object will be already used.

I avoid the problem, by SyncLocking the function. But this is not really my favorite approach.

So the GdPictureImaging Class isn’t thread save.
DennyR
 
Posts: 2
Joined: Mon Jun 21, 2010 6:28 pm

Re: GDPicture.NET - Thread Safe

Postby Loïc » Thu Jul 15, 2010 2:50 pm

Hi,

Please give us a way to reproduce your error.
If you can create a thread here adding basic application reproducing the error it should help us for investigation: http://support.gdpicture.com/index.php
Please we need standalone application, no code snippet which will be not useful to be in the same condition as you are.

Note: Before releasing any new update we test all our functions in a multithread application and we have 0 known issue. So I suspect your issue to be away...

Kind regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France


Return to General discussions

Who is online

Users browsing this forum: No registered users and 1 guest