Gianni Posted November 16, 2013 Share Posted November 16, 2013 Problem solved. Or should I say "bypassed". I added the following line in the code of the console app : setvbuf(stdout, 0, _IONBF, 0); (http://www.cplusplus.com/reference/cstdio/setvbuf/) It's just unfortunate that I had to modify the code of the app. Maybe some details about stream buffering should be added on the page about StdoutRead in the AutoIt doc? Hi ChristianDB, that's interesting excuse me, how do you use that line of code? the DOS process is an your own DOS program written by you, and you have rewritten it? or in which other way have you used it? thanks Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
ChristianDB Posted November 18, 2013 Author Share Posted November 18, 2013 (edited) Yes the DOS process is written here in the company. Basically we are looking for a way to test it using AutoIT. Ideally we don't want to modify the code only to enable automatic testing as we are providing this code to our clients. And to answer your first question, I just added the call to setvbuf in the beginning of the main function. Edited November 18, 2013 by ChristianDB Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now