Welcome to LEAD Support Forum Login | Register | Faq  

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

Re: .tmp files on Save
Started by salexander@nextprocess.com at 01-31-2006 13:20. Topic has 9 replies.

Print Search « Previous Thread Next Thread »
  01-31-2006, 13:20
salexander@nextprocess.com is not online. Last active: 2/26/2006 1:19:48 AM salexander@nextprocess.com

Not Ranked
Joined on 08-10-2004
Posts 3
.tmp files on Save
Reply Quote

When I save an image from the IRasterViewer it creates a .tmp file on my local machine. The disk eventually fills up. How can I either prevent the .tmp file or delete it when OCR is done with it?

 

Thanks


   Report 
  02-02-2006, 11:22
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: .tmp files on Save
Reply Quote
Can you isolate the exact steps that trigger the problem? Are you using one of our demos? Or you are using your own code?
Please give me more detials.


Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  02-21-2006, 10:53
salexander@nextprocess.com is not online. Last active: 2/26/2006 1:19:48 AM salexander@nextprocess.com

Not Ranked
Joined on 08-10-2004
Posts 3
Re: .tmp files on Save
Reply Quote

Ali,

The application is my own. Not only does it create temp files on save, but whenever I add a page to an OCR object. Here's my code

OCRObject.Startup()    

// load the image stream in here

OCRObject.AddPage(LeadImage,0);

When the OCRObject starts a temp folder is created in my Documents and Settings folder. I then load the image stream with a .jpg file, then I add the page to the OCR Object. This is when it creates a .tmp file of my image.

This is fairly basic stuff and I can't beleive someone hasn;t already asked this question or it's something that is easily worked around. As it stands now I have to manually clear our users temp folder every few days.

Thanks,
Scott


   Report 
  02-22-2006, 12:08
Ali is not online. Last active: 1/24/2006 12:52:31 PM Ali



Top 25 Posts
Joined on 01-19-2006
Posts 141
Re: .tmp files on Save
Reply Quote
I tried the steps in our OCR Main Demo and the problem not active. Did you try our demo?
Please check what's your  xocr.dll version?


Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support


   Report 
  01-24-2007, 4:54
Squark is not online. Last active: 1/24/2007 10:50:05 AM Squark

Top 500 Posts
Joined on 11-10-2006
Switzerland
Posts 12
Re: .tmp files on Save
Reply Quote

Is there a solution for this problem? I have the same. In addition, sometimes I get an exception which says that the system cannot find a specified .tmp file.

Thx for help!


   Report 
  01-24-2007, 15:53
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: .tmp files on Save
Reply Quote
What version of the toolkit are you using?

Second, please find the file xocr.dll (either in your Windows\system32 directory for versions 14.5 and older or your [LEADTOOLS]\Bin\Common\OCR\ directory for 15) and let me know what the file version is.

Greg Ross
LEADTOOLS Technical Support
   Report 
  01-25-2007, 5:41
Squark is not online. Last active: 1/24/2007 10:50:05 AM Squark

Top 500 Posts
Joined on 11-10-2006
Switzerland
Posts 12
Re: .tmp files on Save
Reply Quote
I'am using LEADTOOLS Document Imaging EVAL 14.5

Version of the xocr.dll is 12.6.2005.5041

   Report 
  01-25-2007, 10:27
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: .tmp files on Save
Reply Quote
Ok, that's not the newest OCR engine.  Please download the OCR Runtime installer for version 15 (the installer also works for 14.5) from http://leadtools.com/evaldownload/downloads.aspx?category=.NET&o=


xocr.dll should now be 12.7.  If it is not, run the installer again, sometimes you need to run it twice.  If it is still not installed properly, go to your Redist\OCR\ directory and copy/paste the files from there into your System32.

Greg Ross
LEADTOOLS Technical Support
   Report 
  11-11-2008, 14:34
DougJPel is not online. Last active: 11/11/2008 5:41:51 PM DougJPel

Not Ranked
Joined on 11-11-2008
Posts 1
Re: .tmp files on Save
Reply Quote
I see the same problem and it occurs with the RasterDocumentEngine.AddPage() call.  Every call to this method generates a temp folder (tmpXXX) and a copy of the image page with a temporary filename (tmpXXX.tmp).  After the OCR process is complete (finding zones and performing recognition) a call is made to the RemovePage() method for each page.  I would expect the temp folders/files to be removed at that step, but it is not happening.

Are temporary folders/files necessary or can they be avoided?  If the stuff is required what is the recommended method for removing them?

Using LeadTools 15.0 with XOCR.DLL 12.7.2006.10.41.

Thanks.

Doug

   Report 
  11-11-2008, 16:07
GregR is not online. Last active: 1/2/2009 9:03:27 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,811
Re: .tmp files on Save
Reply Quote
The temporary files are necessary and cannot be avoided.  This is the way that the OCR engine is designed.
 
Different temp files will get created and removed at different times, so not everything will disappear at RemovePage().  However, once the OCR engine has been shut down and the application has ended, the files should go away.

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » OCR » Re: .tmp files on Save

Powered by Community Server, by Telligent Systems