Hi Paul,
Did you try this:
proc = wx.wxProcess()
proc:Connect(wx.wxEVT_END_PROCESS,
function(event)
print(Hello - the process is over and won't be deleted.)
-- event:Skip(true) -- will crash since wxWidgets will delete it
too
-- proc = nil
Hi João,
Thank you for the solution. I ended up using the following, as it
allows me to implemented synchronous processing (while still using
EXEC_ASYNC):
local proc = wx.wxProcess.Open(cmd) -- this is using EXEC_ASYNC
proc:Redirect()
local streamin =
On Mon, Oct 1, 2012 at 11:41 AM, Paul K paulclin...@yahoo.com wrote:
Hi João,
Thank you for the solution. I ended up using the following, as it
allows me to implemented synchronous processing (while still using
EXEC_ASYNC):
local proc = wx.wxProcess.Open(cmd) -- this is using
Hi John,
Please read the description of wxProcess where they describe how to
use the streams. You will also want to check the status of the process
before trying to use it as well.
Is there any particular problem with the logic I described? I know how
to use streams (I use it in other parts