You cannot call BuildImage as you have to build it (allocate system structures and set offsets, LBAs, locations etc) only once. To know current image size you need to track the callbacks you receive on file add. You get current file size. So just round it to 2048 (logical block size) and add to the current value. So you'll have complete image size. File system overhead for ISO9660/Joliet is very small and can be ignored... That's all
cleartone1 wrote:
I am currently evaluating the StarBurn SDK and have the following problem:
I am using ..JolietFileTree_Create( .. ), and JolietFileTree_Add( .. ) to burn files to Cd or DVD. After adding the files, I use BuildImage, after building the image, JolietFileTree_GetSizeInUCHARs returns the image size.
However I would like to know the image size after each of my files has been added so I know when the Cd/DVD would be full.
If I add a second file then call BuildImage again, I get an error exception 3 saying the image is already built.
How do I get to know the image size as each of my files is added?