wxExecute may only be called from the main thread
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -492,6 +492,14 @@ long wxExecute(const wxString& cmd, int flags, wxProcess *handler)
|
||||
{
|
||||
wxCHECK_MSG( !!cmd, 0, wxT("empty command in wxExecute") );
|
||||
|
||||
#if wxUSE_THREADS
|
||||
// for many reasons, the code below breaks down if it's called from another
|
||||
// thread -- this could be fixed, but as Unix versions don't support this
|
||||
// neither I don't want to waste time on this now
|
||||
wxASSERT_MSG( wxThread::IsMain(),
|
||||
_T("wxExecute() can be called only from the main thread") );
|
||||
#endif // wxUSE_THREADS
|
||||
|
||||
wxString command;
|
||||
|
||||
#if wxUSE_IPC
|
||||
|
Reference in New Issue
Block a user