SpinDoctor,
everything is correct:
Additional Sense Code (ASC): 0x3A, Additional Sense Code Qualifier (ASCQ): 0x00
this means "no disc in drive". Also code waits for drive to become ready (possibly). If such a large timeout is deadly for you may wish to use
StarBurn_CdvdBurnerGrabber_GetDiscInformation(...) and analyze returned SCSI sense in CDB_FAILURE_INFORMATION for the same combination (0x3A, 00). A bit unfriendly I know...
Thanks!
SpinDoctor wrote:
Hi all.
Calling StarBurn_CdvdBurnerGrabber_TestUnitReady should be the right way to test, if there is a disc mounted...
But: Calling this function on an empty drive will take about 10 seconds! (debug and release port) and the debug-out looks like:
CStarBurn_ScsiTransportASPI::ExecuteCDB(): Command failed!!!
SCSI request block dump:
SRB_Status: 0x04, SRB_HaStat: 0x00, SRB_TargStat: 0x02
CDB Length: 6, CDB dump: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
SCSI sense data dump:
Error Code: 0x70, Is Sense Valid: No, Segment Number: 0x00 (0)
Sense Key: 0x02, Reserved: 0x00, Incorrect Length: No
End Of Media: No, File Mark: No, Information: 0x00 0x00 0x00 0x00
Additional Sense Length: 0x0A (10)
Command Specific Information: 0x00 0x00 0x00 0x00
Additional Sense Code (ASC): 0x3A, Additional Sense Code Qualifier (ASCQ): 0x00
First-chance exception at 0x77e53887 in SnapIt!.exe: Microsoft C++ exception: CStarBurn_Exception @ 0x0012c3f8.
Repeated 20 times.
Have I missed something?
Thanks
Spin