[Closed] maxprompt .. need help with dataerror
Hi, I’m making a command prompt that I can dock into max because I need it very often!
This is going well, but I need some help with data error synchronization maybe someone can come up with something
Martin
That’s a fun tool, but maybe you can be a bit more specific, there’s hardly any comments in the code and your not describing a case where stuff goes wrong, it’s hard to debug other peoples code if it’s more then 20 lines or so, without some commenting. So maybe you could take some time to describe it a bit better?
-Johan
the problem is in the keydown event handler at line 240 , I need a way to know if the error buffer is empty before evaluating line 242 else it send a new line and the output get screwed up…and if I try to access xprocess.standarderror.endofstream max freeze and I need to restart.
… I posted the wrong version, sorry, you have to uncomment the code in the xprocess_ErrorDataReceived eventhandler at line 209 to see the error :banghead:
Best regard,
Martin
or I should have said , I need to wait until both the standard and the error buffer get empty before sending the new line and also stopping the standardoutput, if there’s an error !