#1 Burning Software

It is currently Wed Dec 18, 2024 7:54 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: File handle lock problem?
PostPosted: Fri Nov 05, 2010 8:15 pm 
Offline

Joined: Fri Nov 05, 2010 7:54 pm
Posts: 1
Hello, I'm new to the StarBurn SDK, so it's quite possible I'm doing something incorrectly.

I'm evaluating StarBurnX in C# (.Net 3.5). I'm able to create a data DVD without a problem, but trying to remove the staging files afterwards causes a problem, even if I skip the actual burning process.

In other words, I do something like this:
1) Copy test.txt to a temporary directory (e.g., "C:\temp")
2) Call .AddFile("c:\temp\test.txt") on a DataBurnerClass object.
3) (... anything here... )
4) Delete c:\temp\test.txt <-- This fails, indicating the file is in use.

Basically, I can't delete test.txt until I end the process, which makes for a headache in my app. I've tried using .Uninitialize() on the StarBurnX control, but that doesn't help. If I skip step #2, I'm able to delete the file. So it seems like .AddFile() is holding a reference to the file and never letting go.

Any thoughts would be appreciated.


Top
 Profile  
 
 Post subject: Re: File handle lock problem?
PostPosted: Fri Nov 05, 2010 8:33 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
You need to release file tree object to unlock the files. It does not matter did you burn or not.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group