Unhandled COM exception at puma.interop.RecognitionClass.Load()

Feb 26, 2010 at 2:23 AM
Edited Feb 26, 2010 at 3:28 AM



First of all, thank you for sharing your project with the community :)

I'm writing an application that iterates through a folder, loads 1 bitmap at a time in order to OCR its contents, then does some content search, and finally saves metadata to a database.

Everything works fine on the first file. Puma loads it, OCRs and I do my searching as designed, and update the db accordingly.  Once I move to the next file and pass its url to the PumaPage constructor, I get the following error:

System.Runtime.InteropServices.COMException was unhandled
  Message="<0x00000000>: ?????? ???."
       at puma.interop.RecognitionClass.Load()
       at Puma.Net.PumaPage..ctor()
       at Puma.Net.PumaPage..ctor(Bitmap bitmap)
       blah blah

I found that all temporary files seem to be created properly in c:/windows/temp during the first pass:


On the second pass, a new .tmp file is created and then the code throws the exception shown above.

Permissions seem to be right and I've tried different file combinations to ensure the source bitmaps are ok and that seems fine as well.  Using XP Pro. Any ideas?

Feb 26, 2010 at 7:51 AM

You're welcome.

It was reported that Puma.NET changes current directory after each recognition. Besides you may try to turn on security audits and look through event log for any issues regarding Puma access. Also try sysinternals Procmonitor to track which files are accessed. Get back with more data on the issues, now it's hard for me to say anything else.

May 28, 2010 at 12:28 PM


Can you please tell me what permissions you have set and to which folder? I'm having a problem with the constructor too, in a web application. Thanks for you help in advance.



Sep 8, 2011 at 6:05 AM

hello iam venkat, 

       iam using Puma.net dll in clr stored procedure. Everything is working fine, but when iam applying puma to recognize the text in Bitmap file, iam getting "System.Runtime.InteropServices.COMException at spretrieve Stored procedure". That is iam getting error in recognition of text in Bitmap.............can anyone help for this problem iam getting outofBounds with this error.............iam seeking help for this problem from anyone..........