Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pipecom on 3.9x verions of QB64
#16
Fix I used was here, to make certain that things get evaluated in order:

Code: (Select All)
            WHILE 1
                'While ReadFile(hStdOutPipeRead, _Offset(buf), 4096, _Offset(dwRead), 0) <> 0 And dwRead > 0
                x = ReadFile(hStdOutPipeRead, _OFFSET(buf), 4096, _OFFSET(dwRead), 0)
                IF x <> 0 AND dwRead > 0 THEN
                    buf = MID$(buf, 1, dwRead)
                    GOSUB RemoveChr13
                    stdout = stdout + buf
                    buf = SPACE$(4096 + 1)
                ELSE
                    EXIT WHILE
                END IF
            WEND

            WHILE 1
                x = ReadFile(hStdReadPipeError, _OFFSET(buf), 4096, _OFFSET(dwRead), 0)
                IF x <> 0 AND dwRead > 0 THEN
                    buf = MID$(buf, 1, dwRead)
                    GOSUB RemoveChr13
                    stderr = stderr + buf
                    buf = SPACE$(4096 + 1)
                ELSE
                    EXIT FUNCTION
                END IF
            WEND
Reply


Messages In This Thread
pipecom on 3.9x verions of QB64 - by krovit - 11-14-2023, 08:10 PM
RE: pipecom on 3.9x verions of QB64 - by bplus - 11-14-2023, 08:43 PM
RE: pipecom on 3.9x verions of QB64 - by bplus - 11-14-2023, 08:46 PM
RE: pipecom on 3.9x verions of QB64 - by bplus - 11-14-2023, 08:54 PM
RE: pipecom on 3.9x verions of QB64 - by a740g - 11-14-2023, 09:24 PM
RE: pipecom on 3.9x verions of QB64 - by SMcNeill - 11-14-2023, 09:51 PM
RE: pipecom on 3.9x verions of QB64 - by SMcNeill - 11-14-2023, 09:52 PM
RE: pipecom on 3.9x verions of QB64 - by krovit - 11-15-2023, 09:32 AM



Users browsing this thread: 12 Guest(s)