Unhandled Exception in AVIFileOpen()
Posted on 2004-08-23
I'm having a problem opening an AVI file.
Using VC++ 6.0
In my header file:
in my class constructor:
m_pAviFile = NULL;
and then later I try to open the file:
HRESULT hr = AVIFileOpen(m_pAviFile, m_sMoviePath, OF_WRITE | OF_CREATE, NULL);
That line crashes "Unhandled exception in MYAPP.exe [AVIFIL32.dll]: 0XC0000005: Access Violation"
The file is however being created, I can browse to the folder in windows and see it, so it's not a path problem. So what's going wrong here?