<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Try this:</div><div>[tgl]</div><div>|</div><div>[dirty $1(</div><div>|</div><div id="yui_3_16_0_1_1446855455593_2760">[send c]</div><div id="yui_3_16_0_1_1446855455593_2761"><br></div><div id="yui_3_16_0_1_1446855455593_2762" dir="ltr">[namecanvas c]<br></div><div id="yui_3_16_0_1_1446855455593_2759"><span></span></div>  <br><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Friday, November 6, 2015 6:56 PM, Thomas Mayer <thomas@residuum.org> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">Hello,<br><br>I am developing a dynamic abstraction that depends on arguments.<br><br>As I am dynamically deleting objects, the abstraction is opened, and<br>then closed again using [; $1 menuclose(, with $1 being the name of the<br>canvas set before with [namecanvas $0-r].<br><br>This is working well, but when I close a patch with the abstraction<br>included, Pd prompts me to save the opened abstraction.<br><br>I have also tried different float values as additional parameters for<br>menuclose.<br>(<a href="https://github.com/residuum/Puredata-abstractions/blob/master/glue/switch-matrix.pd#L182" target="_blank">https://github.com/residuum/Puredata-abstractions/blob/master/glue/switch-matrix.pd#L182</a>)<br><br>I am not sure if this is an error by me or if I have found a bug. If I<br>have found one or even two, I will report them.<br><br>Reading the source of g_editor.c<br>(<a href="https://github.com/pure-data/pure-data/blob/master/src/g_editor.c#L1974" target="_blank">https://github.com/pure-data/pure-data/blob/master/src/g_editor.c#L1974</a>),<br>I see that 1 should disable the check for modified content (no call to<br>glist_finddirty(x)), but on closing Pd still asks me for confirmation.<br><br>Using 3 will close Pd, which of course is undesired.<br><br>Using 2 does segfault:<br>Program received signal SIGSEGV, Segmentation fault.<br>0x080962c4 in pd_symbol ()<br>(gdb) backtrace<br>#0  0x080962c4 in pd_symbol ()<br>#1  0x08098d8c in outlet_symbol ()<br>#2  0x080d4fe2 in ?? ()<br>#3  0x08098bd3 in outlet_bang ()<br>#4  0x080d884b in ?? ()<br>#5  0x080d8b51 in ?? ()<br>#6  0x08098d07 in outlet_float ()<br>#7  0x08097fef in ?? ()<br>#8  0x08098d07 in outlet_float ()<br>#9  0x080d883b in ?? ()<br>#10 0x080d8b51 in ?? ()<br>#11 0x08098d07 in outlet_float ()<br>#12 0x080d76ae in ?? ()<br>#13 0x08098e23 in outlet_list ()<br>#14 0x08098e23 in outlet_list ()<br>#15 0x080d87d9 in ?? ()<br>#16 0x08098e23 in outlet_list ()<br>#17 0x080d7e30 in ?? ()<br>#18 0x08098d07 in outlet_float ()<br>#19 0x08097fef in ?? ()<br>#20 0x08098d07 in outlet_float ()<br>#21 0x08098d07 in outlet_float ()<br>#22 0x080d4c62 in ?? ()<br>---Type <return> to continue, or q <return> to quit---<br>#23 0x08098bd3 in outlet_bang ()<br>#24 0x080d884b in ?? ()<br>#25 0x080d8bd2 in ?? ()<br>#26 0x08098bd3 in outlet_bang ()<br>#27 0x080978d9 in pd_typedmess ()<br>#28 0x08097aaa in pd_vmess ()<br>#29 0x0805966a in canvas_loadbangsubpatches ()<br>#30 0x080596e3 in ?? ()<br>#31 0x08059690 in canvas_loadbang ()<br>#32 0x080978d9 in pd_typedmess ()<br>#33 0x08097aaa in pd_vmess ()<br>#34 0x0809626a in pd_doloadbang ()<br>#35 0x080a0568 in glob_evalfile ()<br>#36 0x080a2dd7 in ?? ()<br>#37 0x080a3d62 in glob_initfromgui ()<br>#38 0x0809f324 in binbuf_eval ()<br>#39 0x080a65f1 in socketreceiver_read ()<br>#40 0x080a5bcc in ?? ()<br>#41 0x080a2a78 in m_mainloop ()<br>#42 0x080569bb in main ()<br><br>I have found the same behaviour in Pd vanilla 0.46 Debian and Windows<br>and Pd extended 0.42 Debian and Windows<br><br>Thanks,<br>Thomas<br>-- <br>"Prisons are needed only to provide the illusion that courts and police<br>are effective. They're a kind of job insurance."<br>(Leto II. in: Frank Herbert, God Emperor of Dune)<br><a href="http://www.residuum.org/" target="_blank">http://www.residuum.org/</a><br><br>_______________________________________________<br><a ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div></div></body></html>