On 25 Feb 2011, at 13:28, Wimpie Nortje wrote:

Is it safe to create a dynamic array with setlength() in one thread and
free the array using finalize() in another thread?

Normally, you should not call finalize() on dynamic arrays. When the last reference to a dynamic array goes out of scope, it is finalised automatically. It is safe when this happens in a different thread than the one in which it was created.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to