AVI - am i doing something wrong?
Hi, i am using the CAVIGenerator (CodeProject code) class to record AVIs and i use a bitmap info header to set it up, however it crashes. So, what do i miss:
BITMAPINFOHEADER bmpInfo;
bmpInfo.biSize=sizeof(BITMAPINFOHEADER);
bmpInfo.biWidth=m_WindowWidth;
bmpInfo.biHeight=m_WindowHeight;
bmpInfo.biPlanes=1;
bmpInfo.biBitCount=24;
bmpInfo.biSizeImage=m_WindowWidth*m_WindowHeight*3;
bmpInfo.biCompression=BI_RGB;
m_render_avi=CAVIGenerator("test.avi",&bmpInfo,m_render_fps);
hr=m_render_avi.InitEngine();
After the dialog called by InitEngine the program crashes (after doing some things for a real long time (the comp is busy, and eventually it crashes). I get access violation in msvcrt.dll .
Is there somthing i forgot or is there a way to get a CView* variable out of an MFC child view (like in my case COpenGLView). I tried (CView *)&COpenGLView but that also resulted in a crash.
Thanks in advance.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement