Hello,
I am evaluating the Star Burn SDK and am having a little difficulty writing a multisession CD\DVD.
In general terms I would like to Burn a data file and 2 empty folders to the blank disc and then close that session so I can see the file and folders in windows explorer. Then I want to burn additional sessions one at a time each adding new data files and sub-folders to the existing folders.
This is how I am attempting to do it...
1) Get device handle with "StarBurn_CdvdBurnerGrabber_Create"
2) Check if Blank disc.
3) Create file tree with "StarBurn_ISO9660JolietFileTree_Create"
4) Add my file and 2 folders to the tree with "StarBurn_ISO9660JolietFileTree_Add"
5) Prepare for buring by checking the following...
- StarBurn_CdvdBurnerGrabber_ProbeSupportedWriteModes
- StarBurn_CdvdBurnerGrabber_SetBUP
- StarBurn_CdvdBurnerGrabber_SetSpeeds
- StarBurn_ISO9660JolietFileTree_GetLevel
- StarBurn_CdvdBurnerGrabber_TestUnitReady
- StarBurn_CdvdBurnerGrabber_GetTrackInformation
6) Create the image by calling "StarBurn_ISO9660JolietFileTree_BuildImage"
7) Check the size of image with "StarBurn_ISO9660JolietFileTree_GetSizeInUCHARs"
8) Then I burn it with "StarBurn_CdvdBurnerGrabber_TrackAtOnceFromTree"
9) Then I clean up my SO9660JolietFileTree.
10) I Cose the session by calling "StarBurn_CdvdBurnerGrabber_CloseSession"
Which all seems to work fine.
then I...
11) Create a new file tree with "StarBurn_ISO9660JolietFileTree_Create"
12) Import existing track by passing "1" to "StarBurn_ISO9660JolietFileTree_ImportTrack"
13) Then I following steps 4 - 10.
which also seems to work.
Now when I try to import both of the previous tracks I get an access violation inside stanburn.dll when attempting to import the existing tracks.
I shall try to post the log from this soon, but I wanted to check that I have thr work-flow correct first and that this is the intended use of "StarBurn_ISO9660JolietFileTree_ImportTrack"?
Thanks in advance,
Grant.
|