[fpc-pascal] question about FPC heap and threading

2010-08-11 Thread Seth Grover
These are very simple questions, but I just want to make sure a few of my assumptions are correct: 1. The default FPC heap manager uses one heap per thread, right? I am basing this assumption off of things I have read in various threads on this and other mailing lists since around 2.2.x-ish. Looki

Re: [fpc-pascal] question about FPC heap and threading

2010-08-11 Thread Jonas Maebe
On 11 Aug 2010, at 23:35, Seth Grover wrote: > 1. The default FPC heap manager uses one heap per thread, right? Yes. > 2. When a thread is started via, for example, BeginThread > (http://www.freepascal.org/docs-html/rtl/system/beginthread.html) this > heap, as well as all other threadvars in my

[fpc-pascal] Re: question about FPC heap and threading

2010-08-11 Thread sethdgrover
Jonas, thank you for your response. I actually think I have discovered my problem: I use "BeginThread" but I do not use "EndThread". I was under the impression that was optional, but from reading some other threads and issues in mantis I can see that failing to call EndThread (ie., just let