Hi,
I use IMediaControl to display an AVI file it works perfectly when I instanciate my frmVidViewer Class (the class where I display the AVI)
but here is my plbm :

Sometimes I need to retrieve only the length of the AVI, here is my code

Set MControl = New FilgraphManager
MControl.RenderFile (FName)
Set MPosition = MControl
sLength = Int(MPosition.Duration)
Set MControl = Nothing
Set MPosition = Nothing

then in the same Class, I instanciate my viewer
Dim MyVidViewer As New frmVidViewer

Inside the viewer I instanciate all the DirectShow object I need but it doesn't work anymore.
The following lime :
MediaControl.RenderFile (FName)
return the following error :
Err.descriptiom : Automation Error
(Err.number - vbObjectError) : 534

Does someone know where the mystery is ?
Gilles