On Wed, Jul 28, 2010 at 2:13 AM, John DeSoi <span dir="ltr"><<a href="mailto:desoi@pgedit.com">desoi@pgedit.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I'm trying to create a 4D plugin to host ECL (OS X 10.5.8). I call cl_boot when the plugin is initialized, but 4D always crashes. If I trace under GDB, it appears to crash in GC_push_all_eager at the line "q = (ptr_t)(*p);"<br>
</blockquote></div><br>There might be some incompatibility between the garbage collector and 4D's code. To ensure this is not the case, remove the call to cl_boot() and call instead GC_init(). If the collector still crashes then this is the culprit. Otherwise one would have to look for other causes. BTW, for safety when embedding in multithreaded applications I would recommend *not* using --enable-gengc <br>
<br>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>