KeystrokeAPI icon indicating copy to clipboard operation
KeystrokeAPI copied to clipboard

When I dispose my keystrokeAPI, typing gets really slow on my pc.

Open JanssonTheBest opened this issue 1 year ago • 0 comments

bool isLogging = true;

        while (isLogging)
        {
            if (!offlineKeyLogging)
            {
                isLogging= false;
                try
                {
                    Application.DoEvents();
                    keyAPIOf.Dispose();
                    GC.Collect();
                    GC.EndNoGCRegion();
                }
                catch (Exception ex)
                {
                    Application.DoEvents();
                }
            }
            Application.DoEvents();
        }

JanssonTheBest avatar Jul 04 '23 01:07 JanssonTheBest