I'm Using VisualStudio 2010 and MFC, And using Allied Visinon Vimba API to get Asynchronousgrab image. Variable m_Image is filled with data that grabbed image from Camera, And updated whenever camera sends the new grab image.
I tried to copy CImage Variable (m_Image) to another Variable (local_img). And 0xC0000005 exception error occured.
Here is my CPP file Function
void CTestDlg::OnBnClickedCopy()
{
CImage local_img;
header_image = m_Image; // no error
local_img = m_Image; // error
}
Here is my Header declaration part.
class CTestDlg : public CDialogEx
{
private
CImage m_Image;
CImage header_image;
}
I want to know why the exception error occured when I try to copy variable that declared at header to variable that declared as local.
It may be the problem that I didn't understand the how to use API well