Rocket Division Software http://www.starburnsoftware.com/forum/ |
|
Burning Multiple Copies http://www.starburnsoftware.com/forum/starburn-sdk-f3/burning-multiple-copies-t275.html |
Page 1 of 1 |
Author: | pipelogix [ Wed Feb 02, 2005 6:56 pm ] |
Post subject: | Burning Multiple Copies |
Trying to add a feature to create multiple copies of a cd but on the second attempt using SessionAtOnce it errors with EN_INVALID_STATE. Here is some psuedo code of what I am doing: CreateBurner(); WaitForDisc(); for(int i = 0; i < Copies;i++){ if(!ImageBuilt){ CreateTree(); AddFilesToTree(); StarBurn...BuildImage(); } SendOPC(); FormatDiscLayout(); StarBurn...SessionAtOnce(); StarBurn...CloseSession(); StarBurn...Eject(); } Do I have to Create a new FileTree/Image for each SessionAtOnce even though I am just creating multiple copies of the same image? I know that works but want to avoid doing it each time due to the amount of time it can take. Thanks, Michael |
Author: | anton (staff) [ Wed Feb 02, 2005 11:33 pm ] |
Post subject: | Re: Burning Multiple Copies |
No. You do not need to create multiple instances multiple times. What you really have to do - "seek" image with SeekToBegin(...) after burn operation is complete. pipelogix wrote: Trying to add a feature to create multiple copies of a cd but on the second attempt using SessionAtOnce it errors with EN_INVALID_STATE.
Here is some psuedo code of what I am doing: CreateBurner(); WaitForDisc(); for(int i = 0; i < Copies;i++){ if(!ImageBuilt){ CreateTree(); AddFilesToTree(); StarBurn...BuildImage(); } SendOPC(); FormatDiscLayout(); StarBurn...SessionAtOnce(); StarBurn...CloseSession(); StarBurn...Eject(); } Do I have to Create a new FileTree/Image for each SessionAtOnce even though I am just creating multiple copies of the same image? I know that works but want to avoid doing it each time due to the amount of time it can take. Thanks, Michael |
Author: | pipelogix [ Thu Feb 03, 2005 4:21 pm ] |
Post subject: | |
That makes sense Thanks! |
Author: | anton (staff) [ Fri Feb 04, 2005 4:49 am ] |
Post subject: | |
Nothing for yet. I think we'll add "multiburner" sample to SDK. As you're not even falling into first 10th of people who'd ever asked something like this pipelogix wrote: That makes sense
Thanks! |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |