[Insight-users] smart pointer

chensiqi pidanchen at hotmail.com
Thu Dec 18 00:01:09 EST 2008


whoops, that's a typo. I mean  FilterType::Pointer filter = FilterType::New();
Thanks for your intention



Date: Wed, 17 Dec 2008 22:55:40 -0600From: matt at mmmccormick.comTo: pidanchen at hotmail.comSubject: Re: [Insight-users] smart pointerCC: insight-users at itk.org


I have a smart pointer problem.Here is my code://///////////////////////////// #include "" typedef   itk::XXXX <> FilterTypeFilterType 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?
_________________________________________________________________
新版客服页面提供最新MSN客服资讯,助您轻松解决问题。
http://help.cn.msn.com/Cs.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081218/23528061/attachment.htm>


More information about the Insight-users mailing list