I don't understand your code. Did you mean:
Code:
camera = AxisCamera::GetInstance();
or
HSLImage *image = camera.GetImage();
If it is really the first one, then it means the code failed to communicate with the camera. There are a number of reasons for that.
- Make sure the ethernet cable is a cross over cable.
- Make sure the camera is configured correctly with the correct IP address and acct/password
- Although I haven't verified it myself other threads said the subnet mask of the camera should be 255.0.0.0.