[CONNECT C++] Windows April 2018 Update and ::setlocale (LC_ALL, "")

My app. was working fine until late May 2018, when Windows updated itself to v1803 (a.k.a. Windows 2018 Spring Update or Windows April 2018 Update).  When subsequently I built my app., the commands worked but anything involving the UI crashed MicroStation, including any MicroStation commands that popped the UI.

I tracked the problem to a call to ::setlocale (LC_ALL, "") in MdlMain().  Once I removed that call, the app. behaved correctly once more.  ::setlocale (LC_ALL, "") is a C library call to establish a neutral locale.  I think I probably included it to guarantee correct working of regular expressions.  Until Windows v1803 that function has been working OK since the first release of MicroStation CONNECT, and previously with V8i.

I suspect my problem is related to the issues for international apps. and the Windows v1803 update, which seems to have created chaos elsewhere (am I understating the problem?).  Can anyone throw any light on this?   At some point I would like to reinstate ::setlocale (LC_ALL, ""), but don't know how to determine when it would be safe to do so.

Parents Reply Children
No Data