Can't add session on DVD+-RW - works with CD-RW

vbimport

#1

Hello,

I’m trying to build a multi-session DVD±RW with NeroAPI (I use 6.6.0.6). It works without any problem with CD-RW (with the same code except the media type) but I’ve got always the message “the disc is no empty” with DVD±RW. So I can’t add a session on this kind of disc until I erase the disc :frowning:

this is the code I use:

importedNeroFile = NeroImportDataTrack( neroDeviceHandle, lastTrack , &ppCDStamp, &track, 0, &result, NULL );
NeroFreeCDStamp ( ppCDStamp );

NERO_ISO_ITEM* neroFile = NeroCreateIsoItem();
(this neroFile will be added at the end of the importedNeroFile)

// no CD stamp, artist or title required
writeCD.nwcdpCDStamp=NULL;
writeCD.nwcdArtist=NULL;
writeCD.nwcdTitle=NULL;

writeCD.nwcdCDExtra=FALSE;

// we have no Audio tracks
writeCD.nwcdNumTracks=0;
writeCD.nwcdMediaType = MEDIA_DVD_P_RW;

if ( neroDeviceHandle ) {

writeCD.nwcdIsoTrack = NeroCreateIsoTrackEx( firstNeroFile, Now().DateTimeString().c_str(), NCITEF_CREATE_ISO_FS | NCITEF_USE_JOLIET );
int iRes = NeroBurn( neroDeviceHandle, NERO_ISO_AUDIO_CD, &writeCD, 
	NBF_WRITE | NBF_CLOSE_SESSION | (verify ? NBF_VERIFY : 0) | (no_eject ? NBF_DISABLE_EJECT : 0),
	0, npProgress );

// free memory that was allocated for the track
NeroFreeIsoTrack(writeCD.nwcdIsoTrack);

// close the device
NeroCloseDevice(neroDeviceHandle);

    //NeroFreeIsoItemTree( importedNeroFile );
    NeroFreeIsoItemTree( firstNeroFile );

Any idea ? Thanks for your help !

Jimmy


#2

Hi,

I just found why I’ve got this behaviour. We must fill in the nwcdpCDStamp var of the NERO_WRITE_CD struct with the previous value given by the NeroImportDataTrack.

Here is my code:

void *ppCDStamp = NULL;

importedNeroFile = NeroImportDataTrack( neroDeviceHandle, lastTrack , &ppCDStamp, &track, 0, &result, NULL );

writeCD.nwcdpCDStamp = ppCDStamp;

Hope it could help someone…

Jimmy


#3

how can i erase an audio cd with roxio or windows media player