Extreme Slow checkout time on windows 7 machine
Out C# code invokers FNP_checkout function from lmgract.dll to checkout license, refer below code lines:
[DllImport("lmgract.dll", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
private static extern ReturnValues FNP_checkout(String FeatureName, String FeatureVersion, int NumberOfLicenses);
public enum ReturnValues
success = 0,
failed = 1,
jobhandleNull = 2,
pointerNull = 3
On same PC with dual boot, the checkout speed is good with Windows 10, around a couple of 100mS. However, the checkout time will be at 30 seconds range with Windows 7. During license checkout, there will be a process running with high CPU priority, which will fully occupy several CPU logical cores, and the overall CPU usage will be around 25% ~ 30%. If such process is not running, slow license checkout time with Windows 7 will not be observed.
Any suggestions to speed up license checkout on Windows 7 configuration with a busy process consuming ~25% CPU process time? We've already avoid our client code from using those fully occupied cores by setting CPU affinity. The only thing seems to make difference is to low down the busy process's priority from high to low.
I might suggest making sure your disk is defragmented and perhaps monitor what's running in the background - you may have some undesired or unnecessary background services and tasks that slowly build up calendar 2023 printable over time and can slow things down quite a bit.