troubleshooting Question

reseting pointer variable - how?

Avatar of Wanderinglazyeye
Wanderinglazyeye asked on
C++
2 Comments1 Solution253 ViewsLast Modified:
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?

WLE
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros