#1 Burning Software

It is currently Wed Dec 18, 2024 10:48 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Determining if there is a disc in drive...
PostPosted: Fri Jul 09, 2004 9:44 am 
Offline

Joined: Thu Jul 08, 2004 8:25 am
Posts: 51
Location: Germany
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


Top
 Profile  
 
 Post subject: Re: Determining if there is a disc in drive...
PostPosted: Fri Jul 09, 2004 12:57 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 16, 2009 1:17 pm 
Offline

Joined: Mon Aug 25, 2008 1:50 pm
Posts: 394
Hello Support,

I am Using VB.NET Sample of StarBurnX.

1) In my application on the burn form. I am having one button which starts creating ISO image from the disc. In a case when I insert the disc in the drive and close the tray and then immediately press the button then it shows me no disc in the drive. It's OK disc is not detected yet but detection is going on.

2) But I have to handle this process in case of the slow machines and old drives. So I refreshed the current selected drive's disc information programaticlly on main thread. My requirement are fulfilled, but application hangs until disc is not detected by drive.

3) To solve this problem I put the drive.DiscInfo.Refresh in another Thread but after putting this in Thread hanging problem is gone, but Information about disc retrieved is wrong. It detects disc as Empty. I have searched from my side nothing is wrong.

Will you please kindly try to simulate the problem and then look into this Refresh problem?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 17, 2009 7:07 am 
Offline

Joined: Thu Dec 13, 2007 8:44 am
Posts: 609
Hello,

Ok, we will try to simulate this problem today.

Thanx for information!

Regards,

Dmitry


Top
 Profile  
 
 Post subject: Re: Determining if there is a disc in drive...
PostPosted: Tue Jun 16, 2009 2:46 pm 
Offline

Joined: Mon Aug 25, 2008 1:50 pm
Posts: 394
Hello Sir,

1) I am having only one source for any problem to discuss which is your forum. Even help file is also not that much updated. So I am asking questions over here.
2) The problems I have discussed so far are many times not documented in Samples and also in Help files.
3) I don't know what all things are still pending from your side to be updated from Starburn Core to StarBurnX. I know those all are important tasks.
4) I have observed on some of other SDKs, those are having TODO list on their main website. How I will come to know what to ask and what to not (because you are still working on it). Even those sites are deleting completed tasks [tagged by completed].

Thank you Sir.


Top
 Profile  
 
 Post subject: Re: Determining if there is a disc in drive...
PostPosted: Wed Jun 17, 2009 8:58 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
We don't share such an information with our customers (and competitors).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group