John,<div><br></div><div>    bingo! Thanks so much!!<br><br></div><div>best,</div><div>Eliot</div><div><br><div class="gmail_quote">On Thu, Nov 4, 2010 at 9:19 PM, John M McIntosh <span dir="ltr">&lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <br><div style="word-wrap:break-word">Ummm the magic eight ball says: <div>&quot;<span style="font-family:Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:12px;border-collapse:collapse;line-height:15px">You should always drain an autorelease pool in the same context (invocation of a method or function, or body of a loop) that it was created.&quot;</span></div>
<div><font face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span style="border-collapse:collapse;line-height:15px"><br></span></font></div><div><font face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span style="border-collapse:collapse;line-height:15px"><span style="border-collapse:separate;font-family:&#39;Lucida Grande&#39;;line-height:normal">&quot;You can debug it by setting a breakpoint in the _CFAutoreleasePoolPop function. To find out exactly where, disassemble the _CFAutoreleasePoolPop function, and look for the first call to CFLog. On the i386 architecture it’s at _CFAutoreleasePoolPop+84.&quot;</span></span></font></div>
<div><font face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="&#39;Lucida Grande&#39;"><span style="border-collapse:separate;line-height:normal"><br>
</span></font></span></font></div><div><font face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="&#39;Lucida Grande&#39;"><span style="border-collapse:separate;line-height:normal">Also consider just a breakpoint on NSLog CFLog   </span></font></span></font></div>
<div><font face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="&#39;Lucida Grande&#39;"><span style="border-collapse:separate;line-height:normal"><br>
</span></font></span></font></div><div><font face="Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="&#39;Lucida Grande&#39;"><span style="border-collapse:separate;line-height:normal"><br>
</span></font></span></font><div><div>On 2010-11-04, at 9:10 PM, Eliot Miranda wrote:</div><br><blockquote type="cite">Hi All,<div><br></div><div>    on Mac OS X Snow Leopard anyone know the magic breakpoint to find out when the program emits &quot;*** attempt to pop an unknown autorelease pool&quot;.  I&#39;ve put breakpoints in __NSAutoreleaseNoPool, write, write$NOCANCEL$UNIX2003 (sp?) vrious ctime &amp; ctime_r routines and still I can&#39;t get gdb to break on producing the error.  Any hints?</div>

<div><br></div><div>TIA</div><div><br></div><div>best</div><div>Eliot</div>
</blockquote></div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><div style="word-wrap:break-word"><div style="word-wrap:break-word"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font face="Helvetica" size="3">--</font></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3">===========================================================================</font></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3">John M. McIntosh &lt;<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>&gt;   Twitter:  squeaker68882</font></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3">Corporate Smalltalk Consulting Ltd.  <a href="http://www.smalltalkconsulting.com" target="_blank">http://www.smalltalkconsulting.com</a></font></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3">===========================================================================</font></div><div><br></div></div></div>
</div></div></div></span></div></span><br></span><br>
</div>
<br></div></div><br></blockquote></div><br></div>