<DIV>Hi,</DIV>
<DIV>You should use the static method vtkSmartPointer::New to initialize your smartptr.</DIV>
<DIV>vtkSmartPtr RenderWindow_ = vtkSmartPtr::New();<OPENGLRENDERWINDOW></DIV>
<DIV><A href="http://www.vtk.org/pipermail/vtkusers/2004-April/073551.html">http://www.vtk.org/pipermail/vtkusers/2004-April/073551.html</A><BR><BR><B><I>Harlow Eric D Contr 412 TW/ENR &lt;Eric.Harlow@edwards.af.mil&gt;</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>1. How common is it to wrap vtk objects in vtkSmartPtrs? This is causing a<BR>memory leak in our code.<BR><BR>vtkSmartPtr<OPENGLRENDERWINDOW> RenderWindow_; <BR><BR><BR>2. We are placing all of the VTK functions in our VTK Application in a C++<BR>dll library so that the end user doesn't have to be vtk expert. Are there<BR>some VTK developers out there that have had success in wrapping the VTK<BR>member functions/objects in a C++ MFC dll? It was easy enough when we were<BR>building our test Application by calling the vtk functions either from the<BR>MFC ViewClass or classes in the Application project space. <BR><BR>Thanks<BR><BR>-Eric<BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <HTTP: vtkfaq cgi-bin public.kitware.com><BR>Follow this link to
 subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></DIV><BR><BR><DIV>
<DIV>Aurélien REGAT-BARREL <BR>My VTK blog : <A href="http://aurelien_regat-barrel.blogspot.com/">http://aurelien_regat-barrel.blogspot.com</A></DIV></DIV><p>
                <hr size=1>
Créez gratuitement votre Yahoo! Mail avec <font color="red"><b>100 Mo de stockage !</b></font>
<br><a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/evt=25917/*http://fr.rd.yahoo.com/mail/mail_taglines_100/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</a><br><br>
<font color="red"><b>Le nouveau Yahoo! Messenger est arrivé !</b></font> Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.
<a href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/evt=26111/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez GRATUITEMENT ici !</a>