Windows Server 2022 - Setting affinity in .NET 6 application errors

  • Thread starter Thread starter Marcus Smallman
  • Start date Start date
M

Marcus Smallman

Guest
Hi,I have a Windows Server 2022 machine with 40 cores and 80 logical processors. Whenever I try and run my application on this machine and attempt to set it's affinity in code or via Task Manager, I get errors.The error I get in code is: Win32Exception (87): The parameter is incorrect When I try and set it via Task Manager (as an admin with UAC disabled) I get: Unable to access or set process affinityAlso, when I try and get the affinity mask for the process in code, I get 0 back.After reading the docs:GetProcessAffinityMask function (winbase.h) - Win32 apps

Continue reading...
 
Back
Top