reseting pointer variable - how?
Posted on 2007-07-27
I have a pointer IplImage* HSVIMage = 0; //declaration
I process the image in my thread and do some stuff to it. I am now done with it. Later in the thread I want to overwrite the image and reuse it. How do I "reset" the pointer variable for reuse? I tried releasing it ReleaseImage( &HSVIMage) and redeclaring it, but then I get a multiple reinitialization error when compiling. Is it even necessary to "reuse" it?