11-11-2025, 06:41 PM
Hi Spriggsy,
made some tests today, works fine in the QB64-PE Windows 64-bit version but crashes in the 32-bit version. I was able to follow it until the ReadFile call which reads the STDOUT pipe (line 149). If you place a SLEEP immediatly before that line you can defer the crash until pressing enter. My first thought was to rather define "buf" as fixed string rather than a variable string, but that doesn't work either. I'm not so deep in this API stuff as you are, my best guess is that some how the pipe handles you read from are invalid in the 32-bit version.
made some tests today, works fine in the QB64-PE Windows 64-bit version but crashes in the 32-bit version. I was able to follow it until the ReadFile call which reads the STDOUT pipe (line 149). If you place a SLEEP immediatly before that line you can defer the crash until pressing enter. My first thought was to rather define "buf" as fixed string rather than a variable string, but that doesn't work either. I'm not so deep in this API stuff as you are, my best guess is that some how the pipe handles you read from are invalid in the 32-bit version.
GuiTools, Blankers & other Projects:
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23

