<SetForegroundWin> failed: Operating system SetForegroundWindow function failed; Windows reports system error 0, "The operation completed successfully."

Anyone know how to correct this error or why it happens only intermittently