<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<BR>whoops, that's a typo. I mean FilterType::Pointer filter = FilterType::New();<BR><BR>
Thanks for your intention<BR><BR>
<HR id=stopSpelling>
<BR>
Date: Wed, 17 Dec 2008 22:55:40 -0600<BR>From: matt@mmmccormick.com<BR>To: pidanchen@hotmail.com<BR>Subject: Re: [Insight-users] smart pointer<BR>CC: insight-users@itk.org<BR><BR><BR>
<DIV class=EC_gmail_quote>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex">
<DIV><BR>I have a smart pointer problem.<BR>Here is my code:<BR>///////////////////////////////<BR> <BR>#include ""<BR> <BR>typedef itk::XXXX <> FilterType<BR>FilterType filter = FilterType::New();<BR></DIV></BLOCKQUOTE>
<DIV><BR>maybe<BR> FilterType::Pointer filter = FilterType::New();<BR>instead<BR><BR></DIV>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex">
<DIV><BR>//////////////////////////////////////<BR>The program will throw out an exception about filter garbage collection.<BR>How to fix this exception without passing the filter as a parameter to funa?<BR></DIV></BLOCKQUOTE></DIV><BR><BR><br /><hr />八卦娱乐包打听,MSN资讯速递帮你忙! <a href='http://im.live.cn/newsexpress' target='_new'>了解详细!</a></body>
</html>