#1 Burning Software

It is currently Sat Dec 21, 2024 1:08 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: GetTrackInformation Failure on non blank CDRW Disc
PostPosted: Sat Feb 25, 2006 8:54 am 
Offline

Joined: Sun Oct 30, 2005 11:26 pm
Posts: 25
StarBurn_CdvdBurnerGrabber_GetTrackInformation fails when I try it on a CDRW disc that has data on it.

If the Disc is not blank, When I call GetTrackInformation for the Invisible track (0xFF) I get a SCSI Error. If I call it for a Blank Disc it works just fine.

I can call GetTrackInformation for the ZERO track on a Disc that has data and that works fine as well, but I am not able to determine the size of the media from the ZERO track.


Do you have any ideas on why this might be?

Thanks


Top
 Profile  
 
 Post subject: Re: GetTrackInformation Failure on non blank CDRW Disc
PostPosted: Sat Feb 25, 2006 2:01 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You're just doing totally wrong things.

GetTrackInformation for invisible track (0xFF) works only for OPENED disc. The one which can be recorded still. For closed disc it would not work. So you need to

1) GetDiscInformation to determine do you have open or closed disc

2) GetTrackInformation for ivisible track if the disc is still open. You'll get amount of free space and NWA so you'll know both RECORDED and FREE spaces left

3) For closed disc you need to call GetTOCInformation to get track layout and there sizes.

If you want to know how much of the space there would be on rewritable disc AFTER you'd erase it (but before you've actually did it) - you're out of luck. There's no way to get such an information.

mkupka wrote:
StarBurn_CdvdBurnerGrabber_GetTrackInformation fails when I try it on a CDRW disc that has data on it.

If the Disc is not blank, When I call GetTrackInformation for the Invisible track (0xFF) I get a SCSI Error. If I call it for a Blank Disc it works just fine.

I can call GetTrackInformation for the ZERO track on a Disc that has data and that works fine as well, but I am not able to determine the size of the media from the ZERO track.


Do you have any ideas on why this might be?

Thanks


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 9 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group