Hello, I'm trying to open m_csFName calling the open function of Cdintf.dll (m_csFName is a tempory pdf file).
The file m_csFName is zero length, and open function fails without fire any exception and the cpu is busy for all next time, so i must terminate the application.
This problem is only on windows xp and with 2.10i version of pdf converter. Working with the same pc and the 2.10h the application creates the file correctly.
TRY
{
CCDIntf_Document::Open(m_csFName);
}
CATCH(COleDispatchException,e)
{
return false;
}
END_CATCH
return true;
Which kind of exception is fired when the open fails?
A possible work around is to check file length before this code.
.
.
.
CFileStatus fs;
BOOL b = CFile::GetStatus(m_csFName,fs);
if ( !b || !fs.m_size )
return false;
.
.
.
Thank you very much!
Bye