http://bugs.winehq.org/show_bug.cgi?id=9306
Summary: Wenlin hangs Product: Wine Version: CVS Platform: PC URL: http://www.trantor.fi/Download/wenlindemo319.exe OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: wine-msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: xerox_xerox2000@yahoo.co.uk
I helped a user on IRC trying get this running; You have to start with full path, otherwise it exits, but even after doing that it hangs for me. With native msvcrt it starts fine. A +relay log showed an endless sequence of this:
0009:Call msvcrt.clock() ret=004677ed 0009:Call KERNEL32.GetProcessTimes(ffffffff,0072fc20,0072fc18,0072fc10,0072fc08) ret=607dd2b4 0009:Ret KERNEL32.GetProcessTimes() retval=00000001 ret=607dd2b4 0009:Ret msvcrt.clock() retval=00000000 ret=004677ed
Even the simple example from msdn for clock() doesn't work in wine (it hangs): http://msdn2.microsoft.com/en-us/library/4e2ess30(VS.71).aspx
Looks like clock() needs some improvement
http://bugs.winehq.org/show_bug.cgi?id=9306
--- Comment #1 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2007-08-13 15:26:47 --- Created an attachment (id=7576) --> (http://bugs.winehq.org/attachment.cgi?id=7576) compiled exe from msdn example page
http://bugs.winehq.org/show_bug.cgi?id=9306
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
http://bugs.winehq.org/show_bug.cgi?id=9306
--- Comment #2 from Damjan Jovanovic damjan.jov@gmail.com 2007-09-04 01:17:22 --- Created an attachment (id=7953) --> (http://bugs.winehq.org/attachment.cgi?id=7953) use sysconf instead of CLK_TCK
Looks like GetProcessTimes() wrongly uses the obsolete CLK_TCK, which is defined as CLOCKS_PER_SEC, which is always 1000000 independently of the real clock ticks.
Using sysconf(_SC_CLK_TCK) instead makes the MSDN test pass and wenlin works (you can't do wine wenlin..., you have to use the full path or start it from the menu/desktop shortcut).
http://bugs.winehq.org/show_bug.cgi?id=9306
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2007-09-04 11:27:24 ---
Using sysconf(_SC_CLK_TCK) instead makes the MSDN test pass and wenlin works
Cool, i guess you will submit the patch soon?
http://bugs.winehq.org/show_bug.cgi?id=9306
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Damjan Jovanovic damjan.jov@gmail.com 2007-09-11 07:32:39 --- Fixed by commit f3c9a9b1b60eae85af861947a303b6fffaf58c95, closing bug.
http://bugs.winehq.org/show_bug.cgi?id=9306
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2007-09-12 07:59:27 --- Damjan thanks for fixing, start fine indeed. Closing
http://bugs.winehq.org/show_bug.cgi?id=9306
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified