Dmitry,
Hello. I think we are missing each other's meanings somehow. What I am trying to do is close the session. I need to be able to use this instance of the databurner (or another instance, I don't care) to add new files and burn new disks. Think of a system that occasionally will burn a database backup to CD. The system will continue to operate while the backup is burned and when it is finished. The burning process itself will not close. I am using the DataBurner class to do my burning with. I can add files, but only when the class is first instanciated. It will burn the first time through just fine. Then I need to verify that the files successfully burned. It is fine if this finalizes the disk as well. Nothing more will be burned on this disk.
If I need to dispose of the databurner class I can, but it does not implement the Dispose pattern or IDisposible. Do I need to do anything other than set it to null to dispose of it?
Nothing that I am working with has an OnCloseSessionBegin event to tie into. What class are you referring to? Should I be using a different class? I have to admit, I am somewhat confused. These seem like reasonable events for me to tap into, but the DataBurned class does not expose any such event, nor is such an event present in your help files. Your help file references an IUDFDataBurnerEvents::OnCloseSessionBegin, but all it says is "Do not modify the target object inside of this handler because it may cause deadlock !!"
In any event, what I need to be able to do is close out the session and be able to add files again. When I try right now I get an error "Wrong image State: Operation cannot be performed because the image tree is built!" Would destroying the databurner object help this? If so, how should I destroy it?
Thanks,
--Steve
|