Hi Thierry,
Thank you for explaining. Now it all makes sense. If I give IDL really little memory (like 32 Mb), it works better because it allocates from the temporary ram immediately. Then, I can kill large arrays and re-allocate a contiguous section again, and it seems to work fine.
Thanks again,
Pavel