Console redirection crashes Hello World
Posted: Thu May 22, 2003 9:57 pm
hi,
I just bought pb as it seems to have good console capability, but just hit a problem I hoping there is a solution to.....
Nice simple classic prog:
compile as console app, all cpu and tried with/without NT compliance as Helloworld.exe
Run the program from the command line and we get the expected 'Hello World'. problem starts when I try to use console redirection. Run the command and I expected to get the file c:\daft containing 'Hello World', instead XP Pro shuts down the executable. Has anyone else had this problem? have I missed something in my code? Is there a workaround?
Better mention, doing all this on AMD 1700+ & Windows XP Professional
I just bought pb as it seems to have good console capability, but just hit a problem I hoping there is a solution to.....
Nice simple classic prog:
Code: Select all
OpenConsole()
PrintN("Hello World")
CloseConsole()
Run the program from the command line and we get the expected 'Hello World'. problem starts when I try to use console redirection. Run the command
Code: Select all
helloworld >c:\daft
Better mention, doing all this on AMD 1700+ & Windows XP Professional