0

Hi folks, from a newly created executable I am getting an "unhandled win32 exception" each time I run it. I don't even know how to begin to evaluate this error. Pls help.

Debugger error dialog:

Unhandled exception at 0x7831c5c2 in ATV.exe: 0xC0000005: Access violation reading location 0x00000000.

Thanks in advance

3
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by megabutt
0

Sounds liike you're trying to access memory which hasn't been allocated. Probably got something to do with your pointers.

And the best way we can help you solve the problem is if you post your code. :)

0

Wasn't sure whether it would have helped - now I know - sorry!

Here goes:

#include "stdafx.h"
#include <iostream>
using namespace std;
void main ()
{
 /* Input Values */
LPCSTR         filterName = "MVMCam";
CapInfoStruct  m_capInfo;
/* Initialise capInfo here */

/* Output Values */
HANDLE         hDriver;

    int nIndex;
    int rt=FclInitialize("FC Lab Imaging Module",nIndex,m_capInfo,&hDriver);
    if(ResSuccess != rt){
        FclUninitialize(&hDriver);
        //AfxMessageBox("Can not open USB camera!");
        
    }
//test command below
AfxMessageBox(_T("Operation Failed."), MB_ICONERROR);
return ;
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.