bei dem Befehl RunProgram mit dem Schalter #PB_Program_Read wird unter Linux (Ubuntu 16.04 LTS 64-bit) die erste Zeile nicht ausgegeben. PureBasic v 5.42 LTS.
Beispielcode:
Code: Alles auswählen
Compiler = RunProgram(#PB_Compiler_Home+"/compilers/pbcompiler", "-?", "", #PB_Program_Open | #PB_Program_Read)
Output$ = ""
If Compiler
While ProgramRunning(Compiler)
If AvailableProgramOutput(Compiler)
Output$ + ReadProgramString(Compiler) + Chr(13)
EndIf
Wend
Output$ + Chr(13) + Chr(13)
Output$ + "Exitcode: " + Str(ProgramExitCode(Compiler))
CloseProgram(Compiler)
EndIf
MessageRequester("Output", Output$)
Die fehlt aber. Das Problem ist mir beispielsweise beim Programm mp3gain aufgefallen.
Code: Alles auswählen
PB-Version: PureBasic 5.42 LTS (Linux - x64)
OS: Xubuntu 16.04 LTS 64-bit
Compilereinstellungen:
[x] Unicode-Executable erstellen
[ ] Thread-sicheres Executable erstellen
[ ] OnError-Unterstützung einschalten
[x] Moderne Themen-Unterstützung aktivieren (für Windows XP und höher)
[ ] Administrator-Modus für Windows Vista und höher anfordern
[ ] User-Modus für Windows Vista und höher anfordern (keine Virtualisierung)
Library Subsystem: ---