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 
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.
Attached Files


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

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

vtkSQLDatabase::GetQueryInstance() also falls into this category.
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.
David Cole (developer)
2011-05-02 10:12

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

 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