Close Disc

I want to close the disc when writing with NeroAPI. But it is not working - i can always append data with Nero.

I do it the following way - what is wrong?

while (…)
{

IsoTrack.AddEntry (ff.GetFilePath());
}

memset(&m_writeCD,0,sizeof(m_writeCD));
m_writeCD.nwcdMediaType = dvd ? MEDIA_DVD_ANY : MEDIA_CD;
m_writeCD.nwcdpCDStamp=NULL;
m_writeCD.nwcdArtist=NULL;
m_writeCD.nwcdTitle = m_szTitle;
m_writeCD.nwcdCDExtra=FALSE;
m_writeCD.nwcdNumTracks=0;

m_writeCD.nwcdIsoTrack = &IsoTrack;
m_writeCD.nwcdCDExtra = FALSE;
int iRes = NeroBurn(m_ndhDeviceHandle, NERO_ISO_AUDIO_CD, &m_writeCD,
(real ? NBF_WRITE : NBF_SIMULATE)
| NBF_DAO
| NBF_DETECT_NON_EMPTY_CDRW | BF_SPEED_IN_KBS
| NBF_CD_TEXT
| NBF_BUF_UNDERRUN_PROT
| NBF_DISABLE_EJECT,
0, &m_npProgress);

Thx

It seems to be correct. What version of
Nero did you use?

Nero v6.0.0.15
Nero API v1.03

I found out in the meantime that it works ok with a CD-R.
Before I was testing with DVD+RW and with this media the disc stays open.
Is that normal behavior with DVD+RW? With Nero i can also close the disc on DVD+RW (but not with Nero API).

This behaviour comes from the method how DVD+RW are written.
DVD+RW can not be finalized in the usual meaning. And they also does not support real multisession like CD-R/RW.
It is just that NeroAPI always add the necessary information to the DVD+RW that it can be continued. Nero only if the user did not choose “Finalize”

Ok - everythings clear now.

Thanks for your support.