Bug? Exception running Export To EDL script

Himanshu wrote on 10/5/2008, 2:25 PM
Vegas 8.0c on Vista64 SP1.

I'm running the SCS supplied Export XML script against a sample project - I think it's the editing sample project (the one about the tour of Boston), and the script generates an exception. It seems like the code that iterates over the Media bins isn't robust.

Can anyone confirm and/or figure out what the problem is?

Comments

Himanshu wrote on 10/7/2008, 6:40 PM
My mistake above - I was running Export XML, not EDL as the subject line says. And the sample project that shows this bug is the "24p widescreen.veg" sample supplied with Vegas 8.0. I filed support case '081008-000007'.

Here's the error message & call stack:

An error occurred during execution of the script C:\Program Files (x86)\vegas Pro 8.0\Script Menu\Export XML.cs

Exception thrown by method called

[OK] [Details]


System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Sony.Vegas.IMediaCOM.GetMetaPathType(UInt32 mediaID, MetaPathType& metaType)
at Sony.Vegas.Media.CreateInstance(UInt32 mediaID)
at Sony.Vegas.MediaBin.GetItem(Int32 index)
at Sony.Vegas.BaseList`1.<GetEnumerator>d__0.MoveNext()
at EntryPoint.ExportMediaBin(XmlElement parent, MediaBin bin)
at EntryPoint.ExportMediaBin(XmlElement parent, MediaBin bin)
at EntryPoint.ExportMediaPool(XmlElement parent, MediaPool pool)
at EntryPoint.ExportProject(XmlElement parent, Project proj)
at EntryPoint.ExportXml(String outputFile)
at EntryPoint.FromVegas(Vegas vegas)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Sony.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
at Sony.Vegas.ScriptHost.CodeDomScriptManager.Run()
at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
Himanshu wrote on 10/9/2008, 6:43 PM
For anyone interested - SCS support replied with an updated .veg project file for the sample that got rid of the exception. SCS support says that the issue will be rectified in a future release.