[Insight-users] smart pointer
Matthew McCormick (thewtex)
matt at mmmccormick.com
Wed Dec 17 23:55:40 EST 2008
>
>
> I have a smart pointer problem.
> Here is my code:
> ///////////////////////////////
>
> #include ""
>
> typedef itk::XXXX <> FilterType
> FilterType filter = FilterType::New();
>
maybe
FilterType::Pointer filter = FilterType::New();
instead
> //////////////////////////////////////
> The program will throw out an exception about filter garbage collection.
> How to fix this exception without passing the filter as a parameter to
> funa?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081217/96b9ced3/attachment.htm>
More information about the Insight-users
mailing list