ecere/Win32 driver: Fixed lock-up on updating caption from other thread (#985)
authorJerome St-Louis <jerome@ecere.com>
Sat, 24 Aug 2013 08:50:08 +0000 (04:50 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 24 Aug 2013 08:50:08 +0000 (04:50 -0400)
- Could happen from a window activation, visible property...
- This solved the IDE from hanging on GDB present but failing to start

ecere/src/gui/drivers/Win32Interface.ec

index 575972c..a729512 100644 (file)
@@ -1455,7 +1455,9 @@ class Win32Interface : Interface
    void SetRootWindowCaption(Window window, char * name)
    {
       uint16 * text = UTF8toUTF16(name, null);
+      guiApp.Unlock();
       SetWindowText(window.windowHandle, text);
+      guiApp.Lock();
       delete text;
    }