<DIV>I'm trying to run a&nbsp;very simple program under wineconsole, but can't get it to work.</DIV>
<DIV>&nbsp;</DIV>
<DIV>The file is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>#include &lt;stdio.h&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>int main (int argc, char * argv[])</DIV>
<DIV>{</DIV>
<DIV>&nbsp;&nbsp;&nbsp; int a;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; printf("Enter a char:");</DIV>
<DIV>&nbsp;&nbsp;&nbsp; a = getchar();</DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>It compiles and runs fine under Linux (prints the message and waits for characters to be typed, ends when Return is pressed).</DIV>
<DIV>&nbsp;</DIV>
<DIV>It also compiles using mingw32 cross-compiler and runs fine if put on a Windows box, but won't run under Wine.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Specifically, the behaviour I observe is:</DIV>
<DIV>1) Console window opens</DIV>
<DIV>2) Console window closes before I can see any text printed (i.e. very fast)</DIV>
<DIV>3) Wine exits with successful completion indicator.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have had no luck getting winedbg to work at all.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I'm using version 0.0.20020411-1 on Debian.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any help appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Incidentally, the background to this is&nbsp;that I'm trying to get a slightly more complicated program working, also a console app, and not having any joy.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.</DIV><p><font face=arial size=-1>
<a href="http://yahoo.shaadi.com" target="_blank"><b>Yahoo! India Matrimony</a>:</b> Find your partner online.
<font face=arial size=-1>Post your <a href="http://yahoo.shaadi.com" target="_blank"><b>profile</a></b>.</font>