Posted: Tue Jun 25, 2002 12:48 am
Restored from previous forum. Originally posted by ebs.
I am having a problem with a Console application compiled with PB 3.2. Here's some simple test code:
OpenConsole()
PrintN("Line #1")
PrintN("Line #2")
MessageRequester("","Done!",0)
CloseConsole()
End
(The MessageRequester statement is only there to keep the console window open so I can check the output.)
If I run the executable program from Win XP Explorer by double-clicking, everything works fine - I see a console window open and the two lines of text are displayed.
However, if I run the same program from the Win XP command prompt, only the first line of text is displayed, then a fatal error occurs. Since Win XP has such totally useless error messages ("ctest.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on might be lost."), I can't tell you much about what type of error occurred. It does say under "Exception Information" that the code is 0xc0000095, if that helps any.
I assume that a console program is meant to be run from the command prompt, and all console I/O should go to that console window. Is this correct?
Thanks for your help,
Eric
I am having a problem with a Console application compiled with PB 3.2. Here's some simple test code:
OpenConsole()
PrintN("Line #1")
PrintN("Line #2")
MessageRequester("","Done!",0)
CloseConsole()
End
(The MessageRequester statement is only there to keep the console window open so I can check the output.)
If I run the executable program from Win XP Explorer by double-clicking, everything works fine - I see a console window open and the two lines of text are displayed.
However, if I run the same program from the Win XP command prompt, only the first line of text is displayed, then a fatal error occurs. Since Win XP has such totally useless error messages ("ctest.exe has encountered a problem and needs to close. We are sorry for the inconvenience. If you were in the middle of something, the information you were working on might be lost."), I can't tell you much about what type of error occurred. It does say under "Exception Information" that the code is 0xc0000095, if that helps any.
I assume that a console program is meant to be run from the command prompt, and all console I/O should go to that console window. Is this correct?
Thanks for your help,
Eric