How IntPtr’s can be dangerous? IntPtrs are usually used to store GDI/Kernel/OS or Window Handles and are used by managed code to pass these handles to native code using P/Invoke. Problems will occur if the IntPtr represents some native resource (memory,