FSD_File leads to crashes, is it useful at all?

Hi,

I wanted to use XML files with OCC 5.2. Writing the files worked fine but reading led to an instant segfault. Some investigations showed that for the file format test in PCDM:
else if(FSD_File::IsGoodFileType(aFileName) == Storage_VSOk) {
aBaseDriver=new FSD_File;
return PCDM_TOFD_File;
}
instantiates a FSD_File object which crashes in its destuctor (I couldn't find the reason). FSD_File crashes have been reported before in the forum (then on Windows, now on Linux) so there must be something wrong. But the PCDM format test is the only place in the framework where FSD_File is used so maybe someone just forgot to remove it or does it have useful applications?

Torsten

Patrik Mueller's picture

Hi Torsten,

I used it in former times for writing CSFDB files. Its an binary format from OCC so it generates smaller files sizes. I still hope they fix the error.

HTH,

Patrik

Torsten Sadowski's picture

Hi Patrik,

there is FSD_BinaryFile. I didn't look at it but couldn't it simply have replaced the old FSD_File?

Torsten

Patrik Mueller's picture

Hi Torsten,

I'm not sure. In the samples they always use "FSD_File" for generating CSFDB. Perhaps anyone from OCC could give us a hint?

Greets,

Patrik