<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Chuck,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp; If I create another patch w/o the external I don't get this behavior at all. &nbsp;Though if I create the patch w/ the external then delete it, save it and open it, there have been times where the behavior returns w/o the external. &nbsp;</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">&nbsp; I'll go through my pd object code again. &nbsp;As you mention there could be symbol pointer that is not accessed or allocated correctly. &nbsp;</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-Rob</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div>
</div>
<br><div><div>On Feb 26, 2014, at 4:09 PM, Charles Z Henry &lt;<a href="mailto:czhenry@gmail.com">czhenry@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div>Hi Robert,<br><br></div>Just to clarify--have you also observed the error in any patches where you have not loaded the external?<br><br></div>For example, if you take your patch, remove the external and save as "test.pd", will the word "tempo" appear correctly and without replacement?<br>
</div><div><br></div>This sounds to me like a mismatched type, like a symbol pointer "foo" being used in place of a string like "foo-&gt;s_name" ... but I'm confused as to how that's occurring inside the text of a message box (not my best subject anyhow)<br>
<div><div><br></div><div>Chuck<br></div><div><br><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 4:22 PM, Robert Esler <span dir="ltr">&lt;<a href="mailto:robert@urbanstew.org" target="_blank">robert@urbanstew.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><div>Hello everyone,</div>
<div>&nbsp; I'm having a strange issue with a custom external built using C++. &nbsp;When using my external in Pd I send it "set" commands using a message box to change internal parameters, e.g [set tempo $1(&nbsp;</div><div>
&nbsp; The strange behavior is as follows:</div><div>&nbsp; &nbsp;1) &nbsp;Sometimes when opening the patch the word "tempo" as referenced above gets changed to some nonsensical characters or is missing altogether. &nbsp;So my message looks like [set ðLᄌ $1( or [set $1(, even though it was saved as [set tempo $1(.</div>
<div>&nbsp; &nbsp;2) &nbsp;When the behavior above does not occur (e.g #1) and the message is preserved upon opening, it only will work as written once then the second time the message is nonsense again but does not actually display as having changed. &nbsp;So the GUI still reads [set tempo $1( but actually prints to the Pd window as: print: set ðLᄌ 140. &nbsp;</div>
<div>&nbsp; &nbsp;3) &nbsp;At times when running my object, after #2 has happened, Pd crashes and leaves a trace to:</div><div><br></div><div>Exception Type: &nbsp;EXC_BAD_ACCESS (SIGSEGV)</div><div>Exception Codes: KERN_INVALID_ADDRESS at 0x00000000100b1a6a</div>
<div><br></div><div>VM Regions Near 0x100b1a6a:</div><div>&nbsp; &nbsp; __LINKEDIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 00000000080a4000-00000000080a5000 [ &nbsp; &nbsp;4K] r--/rwx SM=COW &nbsp;/Applications/Pd-extended.app/Contents/Resources/extra/pddp/pddplink.pd_darwin</div>
<div>--&gt;&nbsp;</div><div>&nbsp; &nbsp; __TEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0000000070000000-000000007015f000 [ 1404K] r-x/rwx SM=COW &nbsp;/System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio</div><div><br></div><div>&nbsp;</div><div>Thread 0 Crashed:: Dispatch queue: com.apple.main-thread</div>
<div>0 &nbsp; libsystem_c.dylib &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="white-space:pre-wrap">        </span>0x903833f0 strcmp + 80</div><div>1 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x0001c493 gatom_key + 305</div>
<div>2 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x000386cf canvas_key + 1659</div><div>3 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x000540b0 pd_typedmess + 740</div>
<div>4 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x00054107 pd_typedmess + 827</div><div>5 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x00058394 binbuf_eval + 1224</div>
<div>6 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x0006255c socketreceiver_read + 1734</div><div>7 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x0006111c sys_domicrosleep + 381</div>
<div>8 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x000611a8 sys_microsleep + 19</div><div>9 &nbsp; pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x0005e413 m_mainloop + 989</div>
<div>10 &nbsp;pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x00060e4b sys_main + 2909</div><div>11 &nbsp;pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x00002172 _start + 216</div>
<div>12 &nbsp;pdextended &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="white-space:pre-wrap">        </span>0x00002099 start + 41</div><div><br></div><div>-----------</div><div><br></div><div>Right now I'm using Pd-extended 42.5, Mac OS X 10.8.5</div>
<div><br></div><div>I'm happy to supply more code, examples, details, etc. if someone can help. &nbsp;</div><div>Much appreciated,</div><div>Rob</div></div>
</div>
<br></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></body></html>