Can't Tell the Error

Started by
11 comments, last by Kylotan 18 years, 2 months ago
Hi everyone, I have been working on my game now for a couple of weeks, and have decided to convert it to an exe so that you guys can download it and give me comments. Now when I converted it, everything seemed as if it had gone off fine, but when I double click on the exe, I see the window for about a second and then it closes, but I can't read the error message in the command prompt because it appears and disapears so fast, does anyone have any suggestions for how to be able to see the error message?
<a href="http://eyeredux.com/campaigns/1/redirect">Hello!</a>
Advertisement
The most simple solution would be to simply start the exe from within a comnsole window.
How would I do that (I'm not very experienced with console programming)
<a href="http://eyeredux.com/campaigns/1/redirect">Hello!</a>
I assume it is a C++ console application.
The "kosher" way to do it is to open the program in a command prompt. An alternative, though, is to put std::cin.get();, or system( "pause" ); at the end of your main() function. Both functions have their drawbacks (the first may not work depending on the state of the stream, the second is platform-specific and is not guaranteed to do what you think even on the target platform).


jfl.
Quote:Original post by PhlashStudios
How would I do that (I'm not very experienced with console programming)
Go to Start->Run->"command"->OK and then cd to your project directory and run your application by typing in its filename and pressing enter.
Ok thanks...(its actually a converted python program) If youd like to know how to accomplish this i can easily oblige
<a href="http://eyeredux.com/campaigns/1/redirect">Hello!</a>
The same thing happens....the window and the command prompt open and then close within a second and i cant tell what the command prompt window says
<a href="http://eyeredux.com/campaigns/1/redirect">Hello!</a>
Quote:Original post by PhlashStudios
Ok thanks...(its actually a converted python program) If youd like to know how to accomplish this i can easily oblige
What do you mean by "converted"?
I "froze" the python script into an exe
<a href="http://eyeredux.com/campaigns/1/redirect">Hello!</a>
Quote:Original post by PhlashStudios
I "froze" the python script into an exe
Oh, then that's beyond me. I gather that there are several members of this community that are knowledgable with Python, so you are sure to find an answer. Good luck.

This topic is closed to new replies.

Advertisement