How to convert an IntPtr to an object in C#? | Microsoft Learn
which is a safe operation even when the GC is moving things around. I had my experiences with this stuff and know much more about managed Heap corruptions and how to debug than I ever wanted to know ;-). Yours, Alois Kraus