A
agilegeek
Hi,
I have one function as,
This is in Office 2007, Microsoft Office Document Imaging.
GetModiDoc()
{
ModiDocument12* pMDoc = NULL;
pMDoc = new ModiDocument12();
pMDoc->CreateDispatch("MODI.Document", &e)
pMDoc->Create((LPCTSTR)m_csTiffCName);
pMDoc->Close(bSaveChangesOnClose);
delete pMDoc;
pMDoc = NULL;
}
I am calling this function from main() as;
main()
{
do{
if (get request for procee)
GetModiDoc();
}while();
}
The first time call to GetModiDoc() works super. But the next time, on
calling GetModiDoc() I get the following exception,
Unhandled exception at 0x3260ba70 in docstore.exe: 0xC0000005: Access
violation reading location 0x0217129c.
Kindly someone help. I read that Close() is unable to close files
properly and release handles ? Is it so ?
Thanks,
Agyle
I have one function as,
This is in Office 2007, Microsoft Office Document Imaging.
GetModiDoc()
{
ModiDocument12* pMDoc = NULL;
pMDoc = new ModiDocument12();
pMDoc->CreateDispatch("MODI.Document", &e)
pMDoc->Create((LPCTSTR)m_csTiffCName);
pMDoc->Close(bSaveChangesOnClose);
delete pMDoc;
pMDoc = NULL;
}
I am calling this function from main() as;
main()
{
do{
if (get request for procee)
GetModiDoc();
}while();
}
The first time call to GetModiDoc() works super. But the next time, on
calling GetModiDoc() I get the following exception,
Unhandled exception at 0x3260ba70 in docstore.exe: 0xC0000005: Access
violation reading location 0x0217129c.
Kindly someone help. I read that Close() is unable to close files
properly and release handles ? Is it so ?
Thanks,
Agyle