vc10play - the parameter is incorrect
I get the same error message - I am burning Audible.com programs onto virtual discs using iTunes -- it appears whenever iTunes "ejects" the disc, Iget the popup box (titlebar = "VC10Play", text = "The parameter is incorrect.")
I run code to automate the process - my code inserts the disc, iTunes sees it inserted and starts the burn, iTunes ejects the disc (popup error) but still works, then my code inserts the next disc. I have determined that it is the EJECTing of the disc that causes the error BECAUSE the last disc of the burn does NOT get ejected by iTunes (but my script is done) - when I tell iTunes or the OS or VirtualCD to eject the disc I still get the error...
here is my code the part that does the auto inserts):
If bMOUNT = True Then
' Init the VCD API object
Set IApi = CreateObject("vc10api.api")
for i = nDiscStart to nDiscEnd
strFileName = strName & " " & Right ("0" & i,2) & " of " & Right ("0" & nDiscEnd,2) & strExtension
strImage = strPath & strFileName
sResult = IApi.VCDInsertEx (strDriveToMount , strImage, "", 8 )
'check drive every X seconds
Do
sResult = IApi.VCDGetMountedFileFromDrive (strDriveToMount)
wscript.sleep(nSleepSec * 1000)
loop while sResult <> ""
'drive empty - wait a bit more for any software like itunes to catch up
wscript.sleep(5000)
Next
Set IApi = Nothing
End If