#1 Burning Software

It is currently Fri Dec 20, 2024 4:13 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: how to use StarBurn_CdvdBurnerGrabber_VerifyTree in delphi
PostPosted: Mon Mar 27, 2006 12:07 pm 
Offline

Joined: Wed Feb 22, 2006 6:25 am
Posts: 12
after call StarBurn_ISO9660JolietFileTree_BuildImage succeed
then i call StarBurn_CdvdBurnerGrabber_VerifyTree but fild

l__EXCEPTION_NUMBER :=StarBurn_CdvdBurnerGrabber_VerifyTree(
CdvdBurnerGrabber,
PCHAR( @l__CHAR__ExceptionText[1] ),
sizeof( l__CHAR__ExceptionText ),
l__ULONG__Status,
@l__CDB_FAILURE_INFORMATION,
ISO9660JolietFileTree,
0, // We'll start from the 0 LBA
@p__PLONG__FailedLBA,
1000 // 1000 logical blocks between progress callback
);

get this error message
20:00:00 VerifyData failed, exception 8, status 31, text "CStarBurn_ScsiTransportASPI::ExecuteCDB(): Command failed"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 10:03 pm 
Hi!

StarBurn_CdvdBurnerGrabber_VerifyTree function verifies recorded file system tree on CD/DVD burner device object used for this particular tree recording. Therefore you need to burn the tree first and only than you can call this function.

Regards,
Alexander Orlovsky


Top
  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 6:26 am 
Offline

Joined: Wed Feb 22, 2006 6:25 am
Posts: 12
Also After burn on cd/dvd,first need eject CD/DVD and reload CD/DVD then can Verify tree?or can directly Verify tree?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 9:11 am 
You only need to do eject/load for Disc-At-Once and Session-At-Once modes. For Track-At-Once CDs and for DVDs you don't need that.

Regards,
Alexander Orlovsky


Top
  
 
 Post subject: problem on get CN_CDVD_VERIFY_PROGRESS
PostPosted: Fri Apr 07, 2006 8:52 am 
Offline

Joined: Wed Feb 22, 2006 6:25 am
Posts: 12
my code

CN_CDVD_VERIFY_PROGRESS:
begin
FFileSizeInLBs := PInt64(ACallbackSpecial1)^;
problem get FFileSizeInLBs value
FLBsWritten.QuadPart := PInt64(ACallbackSpecial2)^;
problem get FLBsWritten.QuadPart value

// Calculate number of percent verify
if FFileSizeInLBs <>0 then
FCurrentPercent.QuadPart :=
((FLBsWritten.QuadPart * 100) Div FFileSizeInLBs) else
FCurrentPercent.QuadPart :=0;
if FCurrentPercent.QuadPart <> g__LARGE_INTEGER__LastWrittenPercent.QuadPart then
begin
// Update last written percent with current value
g__LARGE_INTEGER__LastWrittenPercent.QuadPart := FCurrentPercent.QuadPart;

// This percent to event
CallBackEventer.DoVerifyProgress(g__LARGE_INTEGER__LastWrittenPercent.QuadPart);
end;

end;


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 4:05 pm 
Hi!

Please check our VerifyTree.c console sample from StarBurn SDK. Here is how you should get the callback parameters:

l__LONG__ProcessedLBs = *( PLONG )( p__PVOID__CallbackSpecial1 );

l__LONG__SizeInLBs = *( PLONG )( p__PVOID__CallbackSpecial2 );

Regards,
Alexander Orlovsky


Top
  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 4:20 pm 
So in your case just write:

FFileSizeInLBs := PInteger(ACallbackSpecial1)^;
FLBsWritten.QuadPart := PInteger(ACallbackSpecial2)^;


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 5 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