[Insight-developers] Delete an itk::Image??

Yinpeng Jin yj76@columbia.edu
Wed, 12 Feb 2003 21:50:07 -0500


I need to finish the following job:

step 1: build an image object A
step 2: use fltk::image2dviewer to view it.
step 3: load another image to object A (might change size, therefore I guess
I have to A->Delete(), then A=Image<>::New(); )
step 4: goto step 2;

my code crashed at A->Delete();
I guess it is because it is still associated with Image2DViewer?
any solution?
I think I have to achieve it  to allow user to try another image in a FLTK
demo without first close it.


thanks.
yinpeng.