|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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\n"); Wait(2.0); printf("second\n"); camera->GetImage(&img);//This is where the exception is printf("third\n"); I've been trying different combinations that I thought would work to no avail. Any help would be great- thanks |
|
#2
|
||||
|
||||
|
Re: cam exception
Of course you will have an exception, your camera pointer has not been initialized.
Code:
AxisCamera *camera = AxisCamer::GetInstance("10.xx.yy.11");
|
|
#3
|
||||
|
||||
|
Re: cam exception
hehe- thanks; that used to be elsewhere in my code.. forgot to put it back in when I was moving it
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|