git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16182
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\wxheading{Parameters}
\docparam{cmd}{The command to execute, including optional arguments.}
-\docparam{flags}{The flags to pass to \helpref{wxExecute}{wxexecute}.}
+\docparam{flags}{The flags to pass to \helpref{wxExecute}{wxexecute}.
+ NOTE: wxEXEC_SYNC should not be used.}
\wxheading{Return value}
/* 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) )
{