none
finalize CD

    Question

  • Hi,

    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.

    Thanks
    Wednesday, January 02, 2008 1:07 PM

Answers

  • Thanks for the help.

    I tried with the IBurn example and it works indeed.
    After recreating my program it works fine. I can only conclude that it must have been a building issue that made me use the old assembly.
    Thursday, January 03, 2008 3:31 PM

All replies

  • Hi!

     

       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.ForceMediaToBeClosed = true;

    dataWriterImage.Write(stream); // Burn the stream to disc

     

     

     

    Thursday, January 03, 2008 1:46 AM
  • Thanks for the help.

    I tried with the IBurn example and it works indeed.
    After recreating my program it works fine. I can only conclude that it must have been a building issue that made me use the old assembly.
    Thursday, January 03, 2008 3:31 PM