Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: PDF Error and virtual environment.
Started by schavlytko at 06-24-2009 7:03. Topic has 2 replies.

Print Search « Previous Thread Next Thread »
  06-24-2009, 7:03
schavlytko is not online. Last active: 6/24/2009 10:13:54 AM schavlytko

Not Ranked
Joined on 06-24-2009
Posts 2
PDF Error and virtual environment.
Reply Quote
We created Windows Service (.NET 3.5) for processing images. We are using the Lead Tool (v16) for creating small jpg images from PDF files. This is actually our quite a busy live web server. We are using Windows 2003 32bit (SP2) server in virtual HP environment. Creating small (jpg) images from the big images (jpg) is working very well without any problems. Problem occurs only with PDF reading module. After some moment (two days for example) it stops working with PDF files. Error message:

Message: HandlingInstanceID: 918e98ee-72b5-49bd-bd93-904d9f077e30
An exception of type 'Leadtools.RasterException' occurred and was caught.
-------------------------------------------------------------------------
Type : Leadtools.RasterException, Leadtools, Version=16.0.0.0, Culture=neutral, PublicKeyToken=9cf889f53ea9b907
Message : PDF Error - Either the files required for initializing the PDF engine were not found or they were found but incorrect
Source : Leadtools
Help link :
Code : PdfBadInitializationFiles
Data : System.Collections.ListDictionaryInternal
TargetSite : Void CheckErrorCode(Int32)
Stack Trace : at Leadtools.RasterException.CheckErrorCode(Int32 code)
at Leadtools.Codecs.RasterCodecs.DoLoad(LoadParams loadParams)
at Leadtools.Codecs.RasterCodecs.Load(String fileName, Int32 bitsPerPixel, CodecsLoadByteOrder order, Int32 firstPage, Int32 lastPage)
at DAM.Common.DAMUtils.CreateThumbnail_PDF_To_JPG(String source, String destination, Int32 PageNumber, Int32 Height, Int32 Width)
at DAM.Common.DAMUtils.CreateThumbnail(ThumbnailInfo thumbnailInfo)
at DAM.Common.DAMUtils.UploadAssetByWindowsService(QueueInfo queueInfo)
at DAM.BLL.QueueBO.ExecuteUpload(QueueEntity entity)
at DAM.WindowsService.DAMService.UploadWorkerThread(Object state)

It starts working only after we restart our windows service. After some period in time it stops working again with the similar error message.

My question: is anybody using live deployment of the LeadTool for working with PDF files in virtual HP environment? Could be this environment cause of this problem? All our tests on developer’s computers did not show any sign of this problem with LeadTool (I have generated more than 10000 – 50000 images from quite big PDF files).

Thank you for any suggestions and ideas.

   Report 
  06-24-2009, 11:30
Maen Hasan is not online. Last active: 3/15/2010 4:38:38 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 2,563
Re: PDF Error and virtual environment.
Reply Quote
I'm not sure what you mean by "virtual HP environment".
However, if your service is responding to multiple requests at the same time, and it is creating threads for these requests, using it with our PDF plug-in could fail.
The reason is that the PDF loading library used by our toolkit does not support multi-threading.

If you must use it to service multiple requests, you should ensure it's not being used in a multi-threading manner.

One way to do that is to synchronize the parts that use LEADTOOLS PDF functions to ensure no overlap occurs between them.

Another way is to put the PDF code in an EXE project, and invoke it in a separate process every time a request is made. If multiple instances of the EXE run together, they will not cause problems. The only problem happens if multiple threads are used in the same process.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  06-24-2009, 12:16
schavlytko is not online. Last active: 6/24/2009 10:13:54 AM schavlytko

Not Ranked
Joined on 06-24-2009
Posts 2
Re: PDF Error and virtual environment.
Reply Quote
Thank you very much for your comprehensive explanation. Now we have the start point to fix our problem.
   Report 
Post
LEAD Support Fo... » Developer » PDF » Re: PDF Error and virtual environment.

Powered by Community Server, by Telligent Systems