SetThreadAffinityMask issue

delphi package - easy access to kernel objects etc.

SetThreadAffinityMask issue

Postby pvl » Fri May 22, 2015 3:31 pm


madKernel uses Delphi's SetThreadAffinityMask, but we've discovered this kernel32 API is imported with a wrong signature up to XE5 (see The effect is that on any machine with 32 or more cores, the call can (and will) fail.

Just a heads up for anyone encountering unexplainable crashes.
Posts: 1
Joined: Mon Apr 28, 2008 11:53 am

Re: SetThreadAffinityMask issue

Postby madshi » Tue Jun 02, 2015 7:52 pm

Thanks for the heads-up. FWIW, madKernel doesn't officially support 64bit compilation yet, so it's not really an issue right now. The DWORD_PTR is the same as DWORD when compiling in 32bit.

Got some 64bit modifications for madKernel from a user, though, so there might be a 64bit version available soon, though.
Site Admin
Posts: 9584
Joined: Sun Mar 21, 2004 5:25 pm

Return to madKernel

Who is online

Users browsing this forum: No registered users and 1 guest