WINE error when starting Windows application
The user reports that one of our applications is not running WINE. It works until it passes by a certain shape and then freezes. WINE gives the following output:
~/.wine/drive_c/HeroLab$ wine HeroLab.exe
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:HTTPREQ_QueryOption Semi-STUB INTERNET_OPTION_SECURITY_FLAGS: 0
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_SECURITY_FLAGS; STUB
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT 30000
fixme:wininet:InternetSetOptionW Option INTERNET_OPTION_CONNECT_TIMEOUT (30000): STUB
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
fixme:bitmap:CreateBitmapIndirect planes = 0
Can someone explain these messages to me? I assume these are reports from WINE reports that we are calling functions in a way that WINE does not support, but our code does not call CreateBitmapIndirect at all.
How can we find the source of this problem and fix our application to work under WINE?
Thank.
source to share
The Wine window is in a constant state of development, you need to learn a few things:
-Which version of wine you are using 1.1.38 is the latest at the time of this writing, most likely you can use the old version where the problem you are facing was fixed.
-Which app is having problems? Have you searched for an application database? http://appdb.winehq.org/ You can find the current running status of the application under Wine and any problems users are experiencing.
source to share
http://source.winehq.org/source/dlls/wininet/internet.c
Read: Body of InternetSetOptionW. Most of the flags are not implemented. One way to fix it is to read the documentation for this Microsoft call and find a similar one, but this is nearly impossible.
source to share
Your best bet is to implement a log file where you can write debug trace instructions. Add code to write a line indicating where you are, the value of variables, etc. You may have to do a few iterations, add many logging statements until you narrow down the problem where the problem is.
Activate logging with the command that launches your application ( /D
).
"Flush" the log file by closing it and reopening it every time you write to it. You need this because if your application crashes, it will not reach a normal exit code where the log files are closed.
Ask the user to send you a copy of the file. Have fun with dissection.
Note that wine is fragile and will break due to the unevenness that Windows allows. For example. NULL, invalid window classes, etc. This is an opportunity to improve your code.
(I realize this is old and the OP is moving on, I hope he helps others with similar problems).
source to share