Hi people
I have a big crash with vegas when trying to use the System.IO.FileSystemWatcher in order to monitor a folder and have vegas automatically import new files in the project as those become available in the folder...
I've made a standalone application for testing the fileSystemWatcher and it works ok (triggering events when files are changing in the folder)
Then I've included that in an application extension, and included some vegas call in the function triggered by the event. Even the most basic call (Vegas.DebugOut) is having Vegas to crash immediately when the event is raised.
If I'm not using any Vegas Call in the function, everything works ok when the event is raised... but it has less interest for me.
So when vegas crash, i have a popup with the following text in it:
If someone as any ideas about that...
So just to be clear: it's possible from vegas to init a filesystemwatcher on a particular path, but when the event is triggered by a file change, if the event handler include some vegas call, vegas crash immediately.
I have a big crash with vegas when trying to use the System.IO.FileSystemWatcher in order to monitor a folder and have vegas automatically import new files in the project as those become available in the folder...
I've made a standalone application for testing the fileSystemWatcher and it works ok (triggering events when files are changing in the folder)
Then I've included that in an application extension, and included some vegas call in the function triggered by the event. Even the most basic call (Vegas.DebugOut) is having Vegas to crash immediately when the event is raised.
If I'm not using any Vegas Call in the function, everything works ok when the event is raised... but it has less interest for me.
So when vegas crash, i have a popup with the following text in it:
Non UI Thread - Unhandled Exception System.InvalidCastException: Unable to cast COM object of type 'System.__Com0bject' to interface type 'Sony.Vegas.IMediaCOM'.
Unable to cast COM object of type 'System._ComObject' to interface type 'Sony.Vegas.IMediaCOM'. This operation failed because the QueryInterface call on the COM component for the interface with IID
'{5A35F16D-DCD7-472B-A171-B7C4CB081C30}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
If someone as any ideas about that...
So just to be clear: it's possible from vegas to init a filesystemwatcher on a particular path, but when the event is triggered by a file change, if the event handler include some vegas call, vegas crash immediately.