From ad0500fb78615f351bea58e6aa7e4f46bd091546 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 7 Sep 2003 12:49:04 +0000 Subject: [PATCH] Initialize PM subsystem in every thread, to enable sending messages to the GUI. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/thread.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os2/thread.cpp b/src/os2/thread.cpp index c20cdf3b1f..5c73b1a6ce 100644 --- a/src/os2/thread.cpp +++ b/src/os2/thread.cpp @@ -409,7 +409,10 @@ void wxThreadInternal::OS2ThreadStart( } else // do run thread { + HAB vHab; + vHab = ::WinInitialize(0); dwRet = (DWORD)pThread->Entry(); + ::WinTerminate(vHab); // enter m_critsect before changing the thread state pThread->m_critsect.Enter();