View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000594VTK(No Category)public2004-02-14 15:582011-01-13 17:00
ReporterMathieu Malaterre 
Assigned ToSean McBride 
PriorityhighSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000594: AutoreleasePool for vtkCocoaRenderWindow
Description> By the way, all the examples generate copious warning messages:
>
> 2004-01-14 11:09:52.754 vtk[14393] *** _NSAutoreleaseNoPool():
> Object 0xa30783b0 of class NSCFString autoreleased with no pool in
> place - just leaking
> 2004-01-14 11:09:52.758 vtk[14393] *** _NSAutoreleaseNoPool():
> Object 0xa3078250 of class NSCFString autoreleased with no pool in
> place - just leaking
>
> Are these a problem?

I didn't realize that I had a fix for these warnings in my source. Cocoa applications require that a NSAutoreleasePool is established to
handle resource management. Any Debug build will yield many of these errors unless using some other wrapper to drive an executable. The Dashboard shows these errors at
<http://www.vtk.org/Testing/Sites/krondor.kitware/Darwin-c++-cocoa/ [^]
20040213-0300-Nightly/Results/__Rendering_Testing_Tcl_CamBlur-
image.html>. My fix involved creating an AutoreleasePool for vtkCocoaRenderWindow. The pool is initialized and cleaned up as needed.
No fix for the CamBlur failure yet (it's using single-buffer OpenGL, and that doesn't really exist on MacOS X), but at least the explosion
of _NSAutoreleaseNoPool errors go away.
TagsNo tags attached.
Project
Type
Attached Filespatch file icon cocoa-pool.patch [^] (1,564 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0000643)
Mathieu Malaterre (developer)
2004-02-14 16:01

This seems to be the way used in other projects:
http://www.wodeveloper.com/omniLists/macosx-dev/2000/December/msg00473.html [^]
http://www.omnigroup.com/mailman/archive/macosx-dev/2001-November/020862.html [^]

Other refs from vtkusers:
http://vtk.org/pipermail/vtkusers/2004-January/021620.html [^]
http://vtk.org/pipermail/vtkusers/2002-September/013341.html [^]
(0000649)
Mathieu Malaterre (developer)
2004-02-16 10:34

Chris send me this link:

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Concepts/AutoreleasePools.html#//apple_ref/doc/uid/20000047 [^]
(0000650)
Mathieu Malaterre (developer)
2004-02-16 10:39

Fixed in CVS.

 Issue History
Date Modified Username Field Change
2007-08-08 10:28 Zack Galbreath Note Deleted: 0008276
2007-08-08 10:28 Zack Galbreath Assigned To Amy Squillacote => Andinet
2007-08-08 14:44 Luis Ibanez Summary Goodsite => AutoreleasePool for vtkCocoaRenderWindow
2007-08-08 14:45 Luis Ibanez Project @10@ => VTK
2007-08-21 09:13 Mathieu Malaterre Assigned To Andinet => Sean McBride
2007-08-21 09:14 Mathieu Malaterre Status tabled => closed
2010-11-29 17:59 Mathieu Malaterre Source_changeset_attached => VTK master ae8994d8
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team