cam exception

hello
caused an exception in my code but it’s a little strange since I undid changes and it didnt start working again… Part of the problem is probably that i didnt have a backup

//in constructor
AxisCamera *camera;

ColorImage img(IMAQ_IMAGE_RGB);
printf("first

");
Wait(2.0);
printf("second
");
camera->GetImage(&img);//This is where the exception is
printf("third
");

I’ve been trying different combinations that I thought would work to no avail. Any help would be great- thanks

Of course you will have an exception, your camera pointer has not been initialized.


AxisCamera *camera = AxisCamer::GetInstance("10.xx.yy.11");

hehe- thanks; that used to be elsewhere in my code… forgot to put it back in when I was moving it