PDA

View Full Version : Conversion Problem Found



rpoole1969
07-28-2005, 11:18 AM
I am using the DMCSCRIPTINGLib in Visual Basic under windows 2000 Server. The problem I have run into is if for reason when I issue the following instructions, and the file can not be opened then the DMCSCRIPTINGLib actually deletes the file. I am providing the exact code and how to reproduce this issue.

Dim dmc As New DMCSCRIPTINGLib.Converter, wavsettings As New DMCSCRIPTINGLib.WaveSettings

wavsettings.Set 24000, 1, 16
dmc.VolumeNormalize = True
dmc.PreserveTags = False
dmc.DeleteSourceFiles = False
dmc.ConvertToFolder = False
dmc.AddFromToFiles "C:\myAudio.wav", "C:\myNewAudio"
dmc.GoConversion "Wave", 1, 1, 1, 0

Now place a wav file at this location and in windows explorer highlight it, then issue the above code. You will get an error from the engine stating it can not access the file and then refresh your directory. The file has been deleted.

Regards,

Randy Poole

Spoon
07-28-2005, 03:45 PM
That contradicts its self, ie:

dMC reports it cannot access the input file (cannot read from it) because Windows explorer has it open (only win2000),
So dMC deletes it - if it couldn't access it then it couldn't delete it?