[vtkusers] using vtkSmartPtrs

REGAT-BARREL Aurélien arbvtk at yahoo.fr
Wed Aug 25 07:48:30 EDT 2004


Hi,
You should use the static method vtkSmartPointer::New to initialize your smartptr.
vtkSmartPtr RenderWindow_ = vtkSmartPtr::New();
http://www.vtk.org/pipermail/vtkusers/2004-April/073551.html

Harlow Eric D Contr 412 TW/ENR <Eric.Harlow at edwards.af.mil> wrote:
1. How common is it to wrap vtk objects in vtkSmartPtrs? This is causing a
memory leak in our code.

vtkSmartPtr RenderWindow_; 


2. We are placing all of the VTK functions in our VTK Application in a C++
dll library so that the end user doesn't have to be vtk expert. Are there
some VTK developers out there that have had success in wrapping the VTK
member functions/objects in a C++ MFC dll? It was easy enough when we were
building our test Application by calling the vtk functions either from the
MFC ViewClass or classes in the Application project space. 

Thanks

-Eric
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: 
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



Aurélien REGAT-BARREL 
My VTK blog : http://aurelien_regat-barrel.blogspot.com


		
---------------------------------
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis.Téléchargez GRATUITEMENT ici !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040825/2e469d27/attachment.htm>


More information about the vtkusers mailing list