<div dir="ltr"><div><div>The difference probably indicates that something is going on in your _setup() function.  Once you&#39;ve loaded a class in a patch, it stays in memory.  If you close the patch, and open another patch without the class, you may still see the effects---but if you close pd, and reopen without using the class, you should not see the effects at all.<br>
<br>The backtrace shows a seg fault from calls in &quot;binbuf_eval&quot;, which is the code related to parsing and loading a patch.  You might just have passed a struct as an argument, where it&#39;s expected to be an element of that struct.<br>
<br></div>Although.... pointer type mismatches will definitely throw a compiler warning you should have seen already.  Would you post the _setup() function?<br><br></div>Chuck<br><div><div><br><br><br><br></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 27, 2014 at 1:09 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"><br><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
Hi Chuck,</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
  If I create another patch w/o the external I don&#39;t get this behavior at all.  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.  </div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
  I&#39;ll go through my pd object code again.  As you mention there could be symbol pointer that is not accessed or allocated correctly.  </div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
-Rob</div><div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<br></div>
</div><div><div class="h5">
<br><div><div>On Feb 26, 2014, at 4:09 PM, Charles Z Henry &lt;<a href="mailto:czhenry@gmail.com" target="_blank">czhenry@gmail.com</a>&gt; wrote:</div><br><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 &quot;test.pd&quot;, will the word &quot;tempo&quot; appear correctly and without replacement?<br>

</div><div><br></div>This sounds to me like a mismatched type, like a symbol pointer &quot;foo&quot; being used in place of a string like &quot;foo-&gt;s_name&quot; ... but I&#39;m confused as to how that&#39;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>  I&#39;m having a strange issue with a custom external built using C++.  When using my external in Pd I send it &quot;set&quot; commands using a message box to change internal parameters, e.g [set tempo $1( </div><div>

  The strange behavior is as follows:</div><div>   1)  Sometimes when opening the patch the word &quot;tempo&quot; as referenced above gets changed to some nonsensical characters or is missing altogether.  So my message looks like [set ðLᄌ $1( or [set $1(, even though it was saved as [set tempo $1(.</div>

<div>   2)  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.  So the GUI still reads [set tempo $1( but actually prints to the Pd window as: print: set ðLᄌ 140.  </div>

<div>   3)  At times when running my object, after #2 has happened, Pd crashes and leaves a trace to:</div><div><br></div><div>Exception Type:  EXC_BAD_ACCESS (SIGSEGV)</div><div>Exception Codes: KERN_INVALID_ADDRESS at 0x00000000100b1a6a</div>

<div><br></div><div>VM Regions Near 0x100b1a6a:</div><div>    __LINKEDIT             00000000080a4000-00000000080a5000 [    4K] r--/rwx SM=COW  /Applications/Pd-extended.app/Contents/Resources/extra/pddp/pddplink.pd_darwin</div>

<div>--&gt; </div><div>    __TEXT                 0000000070000000-000000007015f000 [ 1404K] r-x/rwx SM=COW  /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio</div><div><br></div><div> </div><div>Thread 0 Crashed:: Dispatch queue: com.apple.main-thread</div>

<div>0   libsystem_c.dylib             <span style="white-space:pre-wrap">        </span>0x903833f0 strcmp + 80</div><div>1   pdextended                    <span style="white-space:pre-wrap">        </span>0x0001c493 gatom_key + 305</div>

<div>2   pdextended                    <span style="white-space:pre-wrap">        </span>0x000386cf canvas_key + 1659</div><div>3   pdextended                    <span style="white-space:pre-wrap">        </span>0x000540b0 pd_typedmess + 740</div>

<div>4   pdextended                    <span style="white-space:pre-wrap">        </span>0x00054107 pd_typedmess + 827</div><div>5   pdextended                    <span style="white-space:pre-wrap">        </span>0x00058394 binbuf_eval + 1224</div>

<div>6   pdextended                    <span style="white-space:pre-wrap">        </span>0x0006255c socketreceiver_read + 1734</div><div>7   pdextended                    <span style="white-space:pre-wrap">        </span>0x0006111c sys_domicrosleep + 381</div>

<div>8   pdextended                    <span style="white-space:pre-wrap">        </span>0x000611a8 sys_microsleep + 19</div><div>9   pdextended                    <span style="white-space:pre-wrap">        </span>0x0005e413 m_mainloop + 989</div>

<div>10  pdextended                    <span style="white-space:pre-wrap">        </span>0x00060e4b sys_main + 2909</div><div>11  pdextended                    <span style="white-space:pre-wrap">        </span>0x00002172 _start + 216</div>

<div>12  pdextended                    <span style="white-space:pre-wrap">        </span>0x00002099 start + 41</div><div><br></div><div>-----------</div><div><br></div><div>Right now I&#39;m using Pd-extended 42.5, Mac OS X 10.8.5</div>

<div><br></div><div>I&#39;m happy to supply more code, examples, details, etc. if someone can help.  </div><div>Much appreciated,</div><div>Rob</div></div>
</div>
<br></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">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></div></div></div></blockquote></div><br></div>