#1 Burning Software

It is currently Thu Dec 19, 2024 8:51 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: JStarBurn setNextSessionAllowed(boolean value)
PostPosted: Fri Apr 06, 2007 1:49 pm 
Offline

Joined: Tue Mar 13, 2007 9:40 am
Posts: 16
Hi,

I tried to burn a Dvd( a re-writable one) setting setNextSessionAllowed(true).

I added a directory to the project using addFile("C:\\Dati") whitch contains only one file. The burning process finished sucessfully.

As a second step i tried to burn another session in the same media. This time i re-named my directory from Dati to Dati1 and then I added it to the project using addFile("C:\\Dati1") . The burning process finished sucessfully.

But when i opened the disc, i expected to find two directories, Dati and Dati1, but i found only the second one. Is this the expected behavior??
If so, what do i have to do in order to have both directories??

Thanks
Eliodor


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 07, 2007 3:18 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
If you did not import previous session (and it looks like you've did not...) writing new data would just effectively delete all existing stuff on the disc. Do session import BEFORE adding new files to append existing compilation. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 8:38 am 
Offline

Joined: Tue Mar 13, 2007 9:40 am
Posts: 16
You were right, i wasn't doing the session import. What method do i have to use in order to do the session import?

I try to do it in the following way, where m_activeBurner is a JStarBurnBurnerGrabber object:

DiscInfo discInfo = m_activeBurner.getDiscInformation();
List list = discInfo.readToc();
for(int i=0; i<list.size(); i++) {
TOCEntry tocEntry = (TOCEntry)list.get(i);
m_activeBurner.importTrack(tocEntry.getTrackNumber());
}

is it right??

If so, then i have another question. When i execute that code and in my drive I have inserted a blank dvd then it throws the following exception:
CStarBurn_ScsiTransportSPTI::ExecuteCDB(): Command failed

I expected that it would have thrown an exception explaining that in the dvd there was no track to import, but not a generic exception like this one.
I would like to have some more information about the exception, is there any way to do this?

Thanks
Eliodor


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 12:01 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
eangjeli wrote:
You were right, i wasn't doing the session import. What method do i have to use in order to do the session import?

I try to do it in the following way, where m_activeBurner is a JStarBurnBurnerGrabber object:

DiscInfo discInfo = m_activeBurner.getDiscInformation();
List list = discInfo.readToc();
for(int i=0; i<list.size(); i++) {
TOCEntry tocEntry = (TOCEntry)list.get(i);
m_activeBurner.importTrack(tocEntry.getTrackNumber());
}

is it right??

If so, then i have another question. When i execute that code and in my drive I have inserted a blank dvd then it throws the following exception:
CStarBurn_ScsiTransportSPTI::ExecuteCDB(): Command failed

I expected that it would have thrown an exception explaining that in the dvd there was no track to import, but not a generic exception like this one.
I would like to have some more information about the exception, is there any way to do this?

Thanks
Eliodor


Point is that: BLANK CD-R(CD-RW) have not Table of Contents (TOC), but DVD always have one blank track (last track) and so always have TOC even on blank disc.

In the near future will be exported CDB_FAUILURE_INFORMATION, which give additional description of such error.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 6:47 am 
Offline

Joined: Tue Mar 13, 2007 9:40 am
Posts: 16
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 7:15 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
What you really need to do - get NWA (NextWritableAddress) and if it's not zero - treat the disc as recorded, get TOC and try to import last track on it.

eangjeli wrote:
Thanks!


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: Google [Bot] and 19 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