[Insight-developers] re-using ImageFileWriter

Lydia Ng lng at insightful . com
Wed, 28 May 2003 10:57:59 -0700


I apologize if this issue was raised before.

A colleague was having problems writing out meta image files.
After successfully writing out one meta (.mhd) file he wanted to reuse
the writer to write out another file and got an access violation at
MetaImage::ElementDataFileName().

As a workaround I got him just to instantiate a new writer.

Is it possible to re-use the writer/metaIO object?=20
If not, can we get it to throw some sort of exception?

- Lydia