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 : Friday, June 2, 2006 1:18:32 AM(UTC)
p.durrant

Groups: Registered
Posts: 13


i run an app with 20 threads scanning emails attachments, i have put our ocr module into a webservice to be called from the threads,

but what i have found is that the web service will only run 2 instances at a time,  on the test app if i  create 20 threads which call the webservice then only approx 10 complete with 10 timing out,

on the webservice side, it seems to get overloaded  and the ocr engine starts to fall over and gives the following

Module initialization warning
Object reference not set to an instance of an object.
The requested function is not available, or there is no appropriate license

after restarting IIS  the webservice wil begin to process again although only 2 at a time

any help would be appreciated

 

 

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, June 5, 2006 3:49:41 AM(UTC)

Ali  
Guest

Groups: Guests
Posts: 3,022

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

The OCR engine cannot be used in more than one thread in the same application memory space.
In the web service itself, does the engine Startup function get called more than once in the same memory space? If yes, this will not work because you must shut it down before you call startup again.
If the different OCR processes are started up in different applications, it should work even on the same machine.


Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support

 
#3 Posted : Monday, June 5, 2006 4:46:49 AM(UTC)
p.durrant

Groups: Registered
Posts: 13


in each thread i create a new instance to the webservice, so in theory they should be in there own memory space,

 

what i have found is that there is a connection limit on the HTTP built into a machine

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07222003.asp

this can be overridden  by adding this to the app.config which solves the multiple connection limit

<system.net>

<connectionManagement>

<add address="*" maxconnection="20" />

</connectionManagement>

</system.net>

but is the same still true about only having one instance running at once ?

 

 

 

 

 

 
#4 Posted : Wednesday, June 7, 2006 5:29:32 AM(UTC)

Ali  
Guest

Groups: Guests
Posts: 3,022

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

Try to serialize access to the OCR engine using a mutex for example.

Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support

 
#5 Posted : Thursday, June 8, 2006 7:02:13 AM(UTC)
p.durrant

Groups: Registered
Posts: 13


that has solved all the issues, thanks for your help
 
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.079 seconds.