Assert that wxEXEC_SYNC is not passed in flags to wxProcess::Open

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-07-15 17:10:26 +00:00
parent 72db889479
commit feb6cde446
2 changed files with 3 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ void wxProcess::Init(wxEvtHandler *parent, int id, int flags)
/* static */
wxProcess *wxProcess::Open(const wxString& cmd, int flags)
{
wxASSERT_MSG( !(flags & wxEXEC_SYNC), wxT("wxEXEC_SYNC should not be used." ));
wxProcess *process = new wxProcess(wxPROCESS_REDIRECT);
if ( !wxExecute(cmd, flags, process) )
{