Error when using XPBurn

G

Guest

Hi

I'm using the XPBurn component , available from MSDN, to manipulate IMAPI from C#. Certainly saved the effort of translating the interfaces into .NET. However I ran into a problem when adding multiple files from the same source directory.

Basically, I get an exception in XPBurnIStorage.CreateStorageDirectory() when the second file is added from an earlier used directory. I patched the code to not create a new XPBurnIStorage object if one already exists with the same key and all works fine. Really surprised that this situation existed though

Anyone else run into this

thanks

Gen
 
P

Peter Huang

Hi Gene,

Thanks for posting in the community.

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.


Thank you for your understanding.

Best regards,
Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Gene

Thanks Peter,

Actually, I'm pretty good on it now. I made a couple improvements that have
taken care of various issues, one being the addition of multiple files from
the same source directory, and the other having to do with the closing of
FileStream objects within XPBurnIStream. Basically implemented IDisposable
on XPBurnIStream and XPBurnIStorage so that XPBurn can dispose them when
appropriate.

Another item that I added was for the RecordDiscThread to handle exceptions
and for it to call Close() on the IDiscMaster reference when burning is
complete to release the writer and cache. At this point the component is
better able to be used multiple times from within the application.

We're pretty much off and running at this point.

thanks,

Gene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top