[wxlua-users] large cmd output error

2014-04-24 Thread empa...@gmail.com
This code snippets doesn't work for me with cmd output bigger or equal 8180
symbols.

proc = wx.wxProcess()
proc:Redirect()
exec = wx.wxExecute("cmd /c echo "..string.rep("8",8180),true,proc)
output = proc:GetInputStream()
print(output:Read(100))

I'm trying wxlua 2.8.12.3 (ansi) with lua 5.1 and wxlua 2.8.12.3 (unicode)
with lua 5.2
operating system: WIndows 7 x64.

Why this happens?
--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform___
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] large cmd output error

2014-04-28 Thread empa...@gmail.com
> It looks like you're hitting the MS Windows cmd limitation.

You are absolutely correct. I've just confused with my tryouts.
Initially i've got a problem with this async code:

dialog = wx.wxDialog(wx.NULL, wx.wxID_ANY, "",wx.wxDefaultPosition,
wx.wxDefaultSize)
dialog:Connect(wx.wxEVT_END_PROCESS, function(event)
wx.wxMessageBox("EVENT HAPPEND")
end)
capt = wx.wxProcess(dialog)
capt:Redirect()
proc = wx.wxExecute([[cscript /nologo long.js 4095]],wx.wxEXEC_ASYNC,capt)
wx.wxGetApp():MainLoop()

My javascript code puts some 'a' letters :
WSH.Echo(Array(Number(WScript.arguments(0))+1).join("a"))

And with arguments bigger then 4095 i've got no MessageBox.
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users