Sorry for the late reply. Hmmmm... madKernel doesn't really support 64bit yet, which is why this problem never showed up for me. Are you really using madKernel for x64? There's a lot of stuff in madKernel which isn't really 64bit ready. E.g. lots of pointer math using "integer" or "cardinal/dword", which should produce crashes if any memory is allocated above 4GB etc. Or handles being defined as "dword" (4 byte) instead of "THandle" (8 byte in x64).