1) Try searching this formu archive. This question was asked and answered multiple times.
2) Unfortunately you don't understand the process... You can play with "would it be other stuff on the disc later or not" during setting write parameters BEFORE starting write. So when we're closing session (or in other words - writing lead-out) we cannot control would it be other session or not. So you're fishing in a place with no fish
The only thing you can do - write bogus extra session (15 megabytes of space would be lost) with no data, set options "IsNextSessionAllowed = FALSE" and finalize disc. That's all... However such an approach would not work for formatted DVD-RW, DVD+RW and DVD-RAM discs. They are ALWAYS writable.
necky wrote:
Sorry, how can I get debug logs? I tried to burn blank cd-r with your soft - with trackatoncefromtree - burned ok and wrote in console output that closing session was ok, but after that I was able to burn again new session with trackatoncefromtreewithimport. You see, I want to buy SDK that allows to finalize CD-R after burning in order to prevent any burnings in future. Does your SDK allows to finalize Cd-R? Thanks, Evgeniy