[Wine] My console app doesn't run in wine

Nobuo T wineforum-user at winehq.org
Tue Jan 13 12:09:19 CST 2009


Dunno wether it's a problem in my app or wine, so I thought I'd better post here first before going to bugzilla. So pardon me if I'm wrong here with this.

I wrote a Win32 console app which runs without problems on at least Win98 and WinXP.
If I start it by doubleclick it also seems to run fine in wine (as far as it runs as a console app started without any command line args ;) ) but it doesn't run if I start it from command line (of course also without args - just "wine wmod.exe").
Then it fails to resize the console with SetConsoleScreenBufferSize and also to write anything to screen with WriteConsoleA.
I use the latest stable wine release (? 1.0.1) and start the app from the Ubuntu 8.10 preinstalled Terminal window.

These should be the relevant wine debug messages:
0009:Call KERNEL32.GetStdHandle(fffffff6) ret=0040aada
0009:Ret  KERNEL32.GetStdHandle() retval=00000004 ret=0040aada
0009:Call KERNEL32.GetStdHandle(fffffff5) ret=0040aae6
0009:Ret  KERNEL32.GetStdHandle() retval=00000008 ret=0040aae6
0009:Call KERNEL32.GetConsoleScreenBufferInfo(00000008,0040c27c) ret=0040ab06
0009:Ret  KERNEL32.GetConsoleScreenBufferInfo() retval=00000000 ret=0040ab06
0009:Call KERNEL32.SetConsoleScreenBufferSize(00000008,00190050) ret=0040ab30
0009:Ret  KERNEL32.SetConsoleScreenBufferSize() retval=00000000 ret=0040ab30
0009:Call KERNEL32.WriteConsoleA(00000008,0040ab58,00000032,0032ff08,00000000) ret=0040ab4c
0009:Ret  KERNEL32.WriteConsoleA() retval=00000000 ret=0040ab4c
0009:Call KERNEL32.ExitProcess(00000065) ret=0040ab58

Thanks in advance.

More information about the wine-users mailing list