Run this code with purifier enabled (Compiler -> Compiler Options -> Compile/Run -> Enable Purifier):
Code:
EnableExplicit
EnableDebugger
Procedure test(*void)
Protected *mem
Repeat
*mem=ReAllocateMemory(*mem,Random(1024,32))
ForEver
EndProcedure
CreateThread(@test(),0) ;comment out this line and then it is all ok
test(0)
If purifier is enabled and 2 or more threads are calling ReAllocateMemory() then you get "Overflow in an dynamically allocated memory block" error.
Tested with PB 5.71 LTS x86 & x64 on Windows 10 x64 1909