#1 Burning Software

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

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: What extra APIs are required for erasing DVD+RW & BDRE?
PostPosted: Thu Jan 08, 2009 2:51 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
I am wrinting a campact console program to erase RW disc.
I think the minimal codes should just like this:

EXCEPTION_NUMBER ExceptionNumber = StarBurn_UpStartEx(....);
if (ExceptionNumber != EN_SUCCESS) {......}
ExceptionNumber = StarBurn_CdvdBurnerGrabber_CreateEx(....);
if (ExceptionNumber != EN_SUCCESS) {......}
ExceptionNumber = StarBurn_CdvdBurnerGrabber_TestUnitReady(....);
if (ExceptionNumber != EN_SUCCESS) {......}
ExceptionNumber = StarBurn_CdvdBurnerGrabber_Blank(.....);
if (ExceptionNumber != EN_SUCCESS) {......}
StarBurn_Destroy(...);
StarBurn_DownShut();

These codes work fine on CDRW & DVD-RW but crash on DVD+RW & BDRE, why it happened? And why is crash not exception error returned from SDK? :(


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 08, 2009 7:22 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
There's a dedicated sample shipped with SDK called Blank. It already does exactly what you want to do. It's easier to to use it then to trace your code trying to find out what's wrong with it. Honestly :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 1:05 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
Oh, that Blank.c is in ASPI only.
I modified it to SPTI, and it works fine.
Thanks.
:oops:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 1:53 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
Well, I guess it's C compiler vs CPP compiler issue.

The modified Blank.c works fine.

But when I copy the entire main() function into my CPP project as a function EraseDisc(), it is still the same.

CD-RW & DVD-RW worked, DVD+RW & BDRE crashed. :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 2:19 am 
Offline

Joined: Tue Aug 12, 2008 8:37 am
Posts: 36
I got it, in erasing CD-RW & DVD-RW cases the Callback can be set to NULL, but not in DVD+RW & BDRE cases.

I shouldn't coding that way.
:oops:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 6:35 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
NP

It happens :)


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 22 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