My application worked correctly with Nero V6 but with V7 I get an EXCEPTION_ACCESS_VIOLATION when I try to burn a non-empty CD. More precisely, it crashes when returning from the UserDialog callback with DLG_RETURN_EXIT on the DLG_NON_EMPTY_CDRW message.
I could notice that the sample program NeroAPITest, that comes with SDK 1.08, also doesn’t terminate correctly when we try first to burn a non-empty CD and then we try to cancel. Here are the NeroAPITest command and output before the error:
>NeroAPITest.exe --drivename f --write --real --iso my_data
Nero API version 18.104.22.168
Requested media: CD-R/RW
Last detected media: CD-RW
The disc is not empty.
This CDRW is not empty.
BurnCD() : burn failed
Then I get an error dialog: “NeroAPITest.exe has encountered a problem… Please tell Microsoft about this problem…” with a report error file leading to newtrf.dll.
When the NeroAPITest works (for instance with Nero 6 version), it ends with message “press RETURN to exit”.
The problem doesn’t seem to be in my software. What can I do to avoid this problem ?