Function Open - (cdintf.dll versione 2.1.0.9)

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
riccardo
Posts: 1
Joined: Mon May 24 2004

Function Open - (cdintf.dll versione 2.1.0.9)

Post by riccardo »

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
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

Hello,

The situation you have described is resolved in our soon to be released version 2.10i-6 of the PDF Converter. Using this version of the product, an exception will be thrown when trying to open a zero byte file.

Thanks
Post Reply