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"><<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>></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>"<span style="font-family:Arial, 'Liberation Sans', 'DejaVu Sans', 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."</span></div>
<div><font face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"><span style="border-collapse:collapse;line-height:15px"><br></span></font></div><div><font face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"><span style="border-collapse:collapse;line-height:15px"><span style="border-collapse:separate;font-family:'Lucida Grande';line-height:normal">"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."</span></span></font></div>
<div><font face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="'Lucida Grande'"><span style="border-collapse:separate;line-height:normal"><br>
</span></font></span></font></div><div><font face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="'Lucida Grande'"><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, 'Liberation Sans', 'DejaVu Sans', sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="'Lucida Grande'"><span style="border-collapse:separate;line-height:normal"><br>
</span></font></span></font></div><div><font face="Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif"><span style="border-collapse:collapse;line-height:15px"><font face="'Lucida Grande'"><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 "*** attempt to pop an unknown autorelease pool". I've put breakpoints in __NSAutoreleaseNoPool, write, write$NOCANCEL$UNIX2003 (sp?) vrious ctime & ctime_r routines and still I can'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 <<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>> 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>