From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Wrong approach. The OS handles the event queue. Your application main thread processes these events. If for whatever reason your applicatin is running a computationally heavy chunk of code, user events m.ay not be processed promptly. Your interaction beomes slUgish. If that happens you may call the ProcesEvent type function or is you want to stop these events to bother your program, run your code it in a new thread.