Terry Mead <t...@weighbatch.com> schrieb am So., 17. Juni 2018, 07:45:
> If the default memory manager for FP creates a heap for each thread, what > happens if an object is created in one thread and freed by another ? > If I remember correctly the memory becomes part of the thread's free list that freed the memory. (Though I could be wrong here) Also, do calls to New () allocate space on the thread heap or just > allocated by the OS ? > All Pascal memory functions are handled by the heap manager. So yes, it's the thread's heap. Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal