Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Sys command truncates captured console output
Re: Sys command truncates captured console output [message #48531 is a reply to message #48530] Sat, 15 July 2017 13:03 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Ops.

Can you test this fix, please?

int LocalProcess::Finish(String& out)
{
	out.Clear();
	while(IsRunning()) {
		out.Cat(Get());
		Sleep(1); // p.Wait would be much better here!
	}
	for(;;) {
		String h = Get();
		if(h.IsVoid())
			break;
		out.Cat(h);
	}
	return GetExitCode();
}

 
Read Message
Read Message
Read Message
Previous Topic: How to distribute some parts of Core in another library?
Next Topic: how to open Trace in U++ core?
Goto Forum:
  


Current Time: Fri Apr 26 20:35:14 CEST 2024

Total time taken to generate the page: 0.02390 seconds