Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to make MODI.Document not leak memory? I have millions..

 
   Database Help (Home) -> Programming RSS
Next:  Table variable performance degradation in stored ..  
Author Message
DR

External


Since: Feb 04, 2008
Posts: 8



(Msg. 1) Posted: Mon Feb 04, 2008 3:17 pm
Post subject: How to make MODI.Document not leak memory? I have millions of images to OCR but each time i OCR one it leaks memory. How to do the OCR and then clean up so that my app doesnt leak memory?
Archived from groups: microsoft>public>sqlserver>programming (more info?)

How to make MODI.Document not leak memory? I have millions of images to OCR
but each time i OCR one it leaks memory. How to do the OCR and then clean up
so that my app doesnt leak memory?

MODI.Document miDoc = new MODI.Document();
for (int i = 0; i < 1000; i++)
{
miDoc.Create("a.gif");
miDoc.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
MODI.Image tifImg = (MODI.Image)miDoc.Images[0];
string recSTring = tifImg.Layout.Text;
miDoc.Images.Remove(tifImg);
miDoc.Close(false);
}
int i23z = 23 + 23;
miDoc.Close(false);

 >> Stay informed about: How to make MODI.Document not leak memory? I have millions.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Random Record Several Times With Millions of Rows??? - Hello, I previously posted on how to randomly select a record from a SQL Server table in the following posting: ..

How to design and maintain millions records daily - Dear all, I want to know if I want to design a database that need to handle millions record daily, how to design the database and maintain it. I need to select,update and insert records. Is that I just need to make index for the columns,then..

Connection Leak... - Hi, I have troubles with a threaded application on W2003 server. It seems to leave open connections behind time to time, it sums to hundreds over a day (the application make thousands). It is using the SQLOLEDB provider, MDAC 2. 82.1830.0, SQL Server..

Connection Leak. - Hi I have troubles with a threaded application on W2003 server. It seems to leave open connections behind time to time, it sums to hundreds over a day (the application make thousands). It is using the SQLOLEDB provider, MDAC 2.82.1830.0, SQL Server..

Connection Leak. - Hi I have written my code in C++ and its a Multithreading program. Three cases of my problem: Below 1st & 2nd cases will be executing on Production machine. And 3rd case will be on my local machine. 1) When application using "Data Source= ...
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]