<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Terry Mead <<a href="mailto:tlm@weighbatch.com">tlm@weighbatch.com</a>> schrieb am So., 17. Juni 2018, 07:45:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font face="Arial">If the default memory manager for FP creates a
heap for each thread, what happens if <font face="Arial">an
object is cre<font face="Arial">ated in one thread and freed by
another ?<br></font></font></font></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If I remember correctly the memory becomes part of the thread's free list that freed the memory. (Though I could be wrong here) </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><font face="Arial"><font face="Arial"><font face="Arial">
<font face="Arial">A<font face="Arial">lso, do calls to New ()</font></font>
allocate space on the thread heap or <font face="Arial">just
allocated by the OS ?<br></font></font></font></font></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">All Pascal memory functions are handled by the heap manager. So yes, it's the thread's heap. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><font face="Arial"><font face="Arial"><font face="Arial"><font face="Arial"></font></font></font></font></div></blockquote></div></div></div>