Okay, so Ctrl-Q skips all free functions on purpose.  If I am understanding correctly, I need to register my cleanup function with atexit on a function of type void _function_(void), but that means I don&#39;t have access to any of my object&#39;s member variables.  <br>
<br>In the case of flext, the external class would need to be declared as static in order for its destructor to be called before shutting down - do you know if this is right, or possible, Thomas or anyone else knowing about flext/C++ and pd?<br>
<br>The reason I need this is because I am messing around with disconnecting the wacom events from controlling the tablet, which takes some calls that change the driver&#39;s settings.  If I cannot turn the settings back before the program stops, they are permanently screwed until I restart the driver/computer.  At least, this is all I can tell so far. <br>
<br>Rich<br><br><div class="gmail_quote">On Sun, Nov 29, 2009 at 3:05 AM, Mathieu Bouchard <span dir="ltr">&lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sat, 28 Nov 2009, Rich E wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can anyone help me understand why an external&#39;s free function doesn&#39;t seem to be called if pd is shut down as a whole (ex. ctrl-q)?  I put post&#39;s, printf&#39;s, and breakpoints in my free function and they are called if I remove the external from the patch or the patch as a whole (ex. ctrl-w). But, if I shut down pd all at once, the breakpoint doesn&#39;t trigger and I don&#39;t get any print.  The same thing happens in a flext external, within the ~Destructor method. I don&#39;t understand.<br>

</blockquote>
<br></div>
because the exit() function always skips over all destructions except those mandated by atexit().<br><font color="#888888">
<br>
 _ _ __ ___ _____ ________ _____________ _____________________ ...<br>
| Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801</font></blockquote></div><br>