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++ MT-multithreading and servers » Can't use MT to capture console output
Can't use MT to capture console output [message #61172] Thu, 28 November 2024 21:41 Go to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
Hi!

So I have an ancient code I'm rewriting with modern U++ and parts of it execute commands in the console and capture this output to feed it to the GUI. Nothing special.

This code used to work perfectly, including when the process hangs or prints out stuff in an infinite loop. Then the GUI can kill it.

But something has changed with the MT implementation of U++ or I'm doing something very stupid and I'm not aware of it, but now the same code hangs the UI. I looked over the docs and samples and found nothing changed.

I added a zip with a package to test.

Just change the path within:
Thread().Run(callback3(ExecutableThread, this, "c:\\temp\\test.pak\\test4.exe", false));


If the exe prints something like "0\n" in a loop, the GUI hangs.

Thank you!

PS: wow, it has been years since I posted one of these: a ZIP with a package to minimally illustrate an issue Very Happy.
  • Attachment: testmt.zip
    (Size: 2.22KB, Downloaded 140 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FtpClient heap leak
Goto Forum:
  


Current Time: Wed Jun 18 08:05:44 CEST 2025

Total time taken to generate the page: 0.05697 seconds