Click here to Skip to main content
16,004,761 members

Comments by Raj_Learner (Top 3 by date)

Raj_Learner 3-Oct-12 1:01am View    
Oh Thanks Perilibrain .. U pointed me in a right direction :)
Raj_Learner 1-Oct-12 7:29am View    
Nope still same error.. Basically i have to run my app continuously for long hours like this:
for(;;)
{
//Other functions..
bReadOCRMODIAXCtrl("E:\\aaa.tiff",cs);
//some other functions..
}

The problem with this code is: After running this for certain time, CPU Memory goes on increases & finally App goes out of scope..

So.. I thought of using Dynamically Allocation i.e.,
for(;;)
{
CMyProject * ob = new CMyProject; //Create the object.
ob->breadOCRMODIAxCtrl("E:\\aaa.tiff",cs);

delete ob; //Release the memory.
}
Please suggest me on this..
Raj_Learner 1-Oct-12 6:59am View    
Hi Perlibrain.. Instead of using ob->bReadOCRByMODIAXCtrl("E:\\aaa.tiff",cs); If we use only bReadOCRByMODIAXCtrl("E:\\aaa.tiff",cs); It works fine & m_MIDOCtrl will not be NULL.
But if i Dynamically create a object of class CMyProject & accessing function through object like this:
CMyProject *ob=new CMyProject;
ob->bReadOCRMODIAXCtrl("E:\\aaa.tiff",cs); will get the Error..

Is this wrong ??