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.

Function Open - (cdintf.dll versione 2.1.0.9)

Postby riccardo on Mon May 24 2004

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
riccardo
 
Posts: 1
Joined: Mon May 24 2004

Postby Jose on Wed May 26 2004

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


Return to C/C++/C# Community

Who is online

Users browsing this forum: No registered users and 1 guest