[vtkusers] Building VTK 4.4 on Mac OS X 10.2.6 (SetFrontProcess failed,-606)

Chris Scharver scharver at evl.uic.edu
Fri Feb 13 19:54:55 EST 2004


On Jan 14, 2004, at 12:45 PM, Gordon Kindlmann wrote:

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

Chris
--
Chris Scharver
Electronic Visualization Laboratory
The University of Illinois at Chicago
Ph: 312-996-3002   FAX: 312-413-7585
<http://www.evl.uic.edu/scharver/>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cocoa-pool.patch
Type: application/octet-stream
Size: 1521 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040213/4c2c90a7/attachment.obj>


More information about the vtkusers mailing list