Forum

Please or Register to create posts and topics.

CWP-2 Remote: Windows Console QuickEdit Mode Can Freeze Request Processing

If you are running CWP-2 Remote and notice that calculation requests stop being processed — jobs pile up in the queue but nothing gets sent to the CWP-2 Calculator — and then everything suddenly resumes after you press a key or click in the console window, this is a known Windows behavior called QuickEdit Mode.

What happens

When you click inside the CWP-2 Remote console window, or accidentally select text in it with the mouse, Windows enters selection mode and freezes the entire process until a key is pressed. CivetWeb threads continue accepting incoming connections, but the request queue stops being dispatched to CWP-2 Calculator via the Named Pipe. This is especially noticeable when using CWP-2 Portal, where multiple users may be submitting calculations simultaneously — from their side the requests just hang with no response until the freeze is cleared.

Workaround

Simply minimize the CWP-2 Remote console window right after starting it. A minimized window cannot be clicked into and will not trigger QuickEdit freeze. If you do accidentally click the window and it freezes, press Space or Escape to clear the selection — avoid pressing Enter, as it will trigger a graceful shutdown of CWP-2 Remote.

Permanent fix

The next release of CWP-2 Remote will automatically disable QuickEdit Mode on startup, so the console window will be safe to leave open or interact with without any risk of freezing.

Note: This issue only affects CWP-2 Remote (a console application). CWP-2 Calculator is a GUI application and is not affected.

Download the updated version of CWP-2 Web Client and source codes.

Code Wizard Pro Team