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

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. :)

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){
        //AfxMessageBox("Can not open USB camera!");
//test command below
AfxMessageBox(_T("Operation Failed."), MB_ICONERROR);
return ;


Should be

int main (void)

return somenumber