I am using VS2005 on WindowsXP with the IMAPIv2 extensions. I wrote a C# program, inspired by the IBurn example, to write a data cd.
The writing works well but the cd remains open. Is there a way to finalize the cd? Can i specify that it is a single session cd?
I tried 'dataWriterImage.ForceMediaToBeClosed = true;' where dataWriterImage has type MsftDiscFormat2Data, but the session remains open.
Right now I got original IBurn from SDK and add one line in function BurnDirectory(line 82). Got fresh erased CDRW media and burn few files. In result I have finalized media. May be you have tried to set ForceMediaToBeClosed in wrong place? You have to do it before Write.Code Block
// Write the image stream to disc using the specified recorder.
dataWriterImage.Write(stream);// Burn the stream to disc