#1 Burning Software

It is currently Sat Apr 27, 2024 1:28 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Abort and/or speed up CdvdBurnerGrabber_TestUnitReady?
PostPosted: Tue Apr 12, 2005 11:25 pm 
I'm calling StarBurn_CdvdBurnerGrabber_TestUnitReady in a thread because it's extremely slow if the device isn't ready (20 seconds) which works fine except that I would like to be able to offer a "Cancel" button to the user.

I tried calling StarBurn_CdvdBurnerGrabber_Cancel in my UI (so not in the same thread that was calling StarBurn_CdvdBurnerGrabber_TestUnitReady) but that didn't seem to do anything.

Thanks!


Top
  
 
 Post subject: Re: Abort and/or speed up CdvdBurnerGrabber_TestUnitReady?
PostPosted: Wed Apr 13, 2005 4:35 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
There's no way to abort TestUnitReady(...) code however you have a choice of using TestUnitReadyEx(...) variant of the call. It has extra parameter - how many seconds to wait for combination "drive + disc" becoming ready.

If it would not be enough for you - we'll consider adding "abort" functionality to at least one of this API calls (they only "ping" device with 0x00 command in a loop so it's not a very big deal to do what you want).

Please let me know what do you think - which way would be preferred for you (we recommend startin from using Ex(...) variant of API call).

betty crokker wrote:
I'm calling StarBurn_CdvdBurnerGrabber_TestUnitReady in a thread because it's extremely slow if the device isn't ready (20 seconds) which works fine except that I would like to be able to offer a "Cancel" button to the user.

I tried calling StarBurn_CdvdBurnerGrabber_Cancel in my UI (so not in the same thread that was calling StarBurn_CdvdBurnerGrabber_TestUnitReady) but that didn't seem to do anything.

Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 3:14 pm 
Is there a difference between calling TestUnitReadyEx(wait=20) and calling TestUnitReadyEx(wait=2) ten times? To put the question another way, are there drives that take 10 seconds to reply, so if I called TestUnitReadyEx(wait=2) ten times, I would always get EN_SCSI_CDB_FAILED, but if I called TestUnitReadyEx(wait=20) it would succeed?

So for me, if calling TestUnitReadyEx(wait=20) and calling TestUnitReadyEx(wait=2) ten times do exactly the same thing, I'm glad to do that; if not, some sort of Cancel would be helpful.

Thanks!


Top
  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 7:11 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
No difference! You can do what you've told!

Anonymous wrote:
Is there a difference between calling TestUnitReadyEx(wait=20) and calling TestUnitReadyEx(wait=2) ten times? To put the question another way, are there drives that take 10 seconds to reply, so if I called TestUnitReadyEx(wait=2) ten times, I would always get EN_SCSI_CDB_FAILED, but if I called TestUnitReadyEx(wait=20) it would succeed?

So for me, if calling TestUnitReadyEx(wait=20) and calling TestUnitReadyEx(wait=2) ten times do exactly the same thing, I'm glad to do that; if not, some sort of Cancel would be helpful.

Thanks!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 26 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