View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012139VTK(No Category)public2011-04-29 17:392014-10-02 09:44
ReporterTimothy Shead 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0012139: Wrapper support for factory methods
DescriptionCurrently, the wrapper generators only recognize a hard-coded list of factory methods that return new VTK objects, such as "New()" and "NewInstance()". The wrapper generators need to know which methods are factory methods, so that reference counts are maintained correctly - otherwise, the generated wrappers automatically increment the reference count of all returned VTK objects, leading to reference leaks for objects returned by factory methods.

This bug exists to keep track of such factory methods, so they can be updated appropriately, either by adding them to the hard-coded list, or by adding appropriate hints once a hinting mechanism is available.

TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0026289)
Timothy Shead (reporter)
2011-04-29 17:40

vtkSQLDatabase::CreateFromURL() falls into this category.
(0026290)
Timothy Shead (reporter)
2011-04-29 17:40

vtkSQLDatabase::GetQueryInstance() also falls into this category.
(0026291)
David Gobbi (developer)
2011-04-29 17:52

Okay, I've patched these two (commit 3923d7b7168432e399a9f3d07e1586ae045cc1a1).
Leaving the bug open until a hinting mechanism for this has been added to VTK.
(0026297)
David Cole (developer)
2011-05-02 10:12

See also this email thread which led to the creation of this bug:

  http://www.vtk.org/pipermail/vtk-developers/2011-April/009757.html [^]

 Issue History
Date Modified Username Field Change
2011-04-29 17:39 Timothy Shead New Issue
2011-04-29 17:40 Timothy Shead Note Added: 0026289
2011-04-29 17:40 Timothy Shead Note Added: 0026290
2011-04-29 17:47 David Gobbi Assigned To => David Gobbi
2011-04-29 17:47 David Gobbi Status backlog => tabled
2011-04-29 17:52 David Gobbi Note Added: 0026291
2011-05-02 10:12 David Cole Note Added: 0026297
2014-10-02 09:44 Berk Geveci Status backlog => closed
2014-10-02 09:44 Berk Geveci Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team