madKernel uses Delphi's SetThreadAffinityMask, but we've discovered this kernel32 API is imported with a wrong signature up to XE5 (seehttp://qc.embarcadero.com/wc/qcmain.aspx?d=121460) The effect is that on any machine with 32 or more cores, the call can (and will) fail.