wxClassInfo::CleanUpClasses();
+ // Delete Message queue
+ if (wxTheApp->m_hMq)
+ ::WinDestroyMsgQueue(wxTheApp->m_hMq);
+
delete wxTheApp;
wxTheApp = NULL;
m_nPrintMode = wxPRINT_WINDOWS;
m_exitOnFrameDelete = TRUE;
m_bAuto3D = TRUE;
+ m_hMq = 0;
} // end of wxApp::wxApp
wxApp::~wxApp()
//
bool wxApp::DoMessage()
{
- BOOL bRc = ::WinGetMsg(vHabmain, &m_vMsg, HWND(NULL), 0, 0);
+ BOOL bRc = ::WinGetMsg(vHabmain, &svCurrentMsg, HWND(NULL), 0, 0);
+ wxUsleep(10000);
if (bRc == 0)
{
// got WM_QUIT
#endif // wxUSE_THREADS
// Process the message
- if (!ProcessMessage((WXMSG *)&svCurrentMsg) )
+ if (!ProcessMessage((WXMSG *)&svCurrentMsg))
{
::WinDispatchMsg(vHabmain, (PQMSG)&svCurrentMsg);
}
#endif // wxUSE_THREADS
while (!Pending() && ProcessIdle())
{
+ wxUsleep(10000);
}
DoMessage();
}
#include <errno.h>
#include <stdarg.h>
-#define INCL_DOS
-#define INCL_PM
-#define INCL_GPI
-#include <os2.h>
#define PURE_32
+
#ifndef __EMX__
#include <upm.h>
#include <netcons.h>
unsigned long ulMilliseconds
)
{
- ::DosSleep(ulMilliseconds);
+ ::DosSleep(ulMilliseconds/1000l);
}
void wxSleep(