U++ framework
Do not panic. Ask here before giving up.

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: 1428
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 229 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HTTPREQUEST using Proxy not working -- SOLVED
Next Topic: Websocket issue
Goto Forum:
  


Current Time: Fri Jun 26 08:07:50 GMT+2 2026

Total time taken to generate the page: 0.00522 seconds