http://bugs.winehq.org/show_bug.cgi?id=24201
Summary: Visual C++ 2008 Express frequently hangs trying compile a project. Product: Wine Version: 1.3.1 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ole32 AssignedTo: wine-bugs@winehq.org ReportedBy: xerox_xerox2000@yahoo.co.uk
I tried to compile a simple project: http://www.cplusplus.com/files/wininc.zip
Steps to reproduce: Install from VC Express 2008 only VCExpress, _without_ installing native dotnet stuff.
Do 'winetricks msxml6" Fire up wine VCExpress.exe. After a few complaints the GUI comes up. Do Open->New Project and open the .dsw file from the link above.
After Build->Build Solution the compilation mostly hangs. It succeeded for me only one time out of many attempts. Also Cleaning the project didn't work.
I found a simple solution to fix the problem: On the console there were a few fixme:CoGetCallerTID
Changing the returncode from E_NOTIMPL to E_FAIL seems to fix all the problems
I'll see if i can write a test for this function, to see if i can improve the stub. AnyOne have hints what this function does, as it seems to be undocumented
diff --git a/dlls/ole32/ole2stubs.c b/dlls/ole32/ole2stubs.c index b029a86..d0199b7 100644 --- a/dlls/ole32/ole2stubs.c +++ b/dlls/ole32/ole2stubs.c @@ -126,7 +126,7 @@ HRESULT WINAPI OleRegEnumFormatEtc ( HRESULT WINAPI CoGetCallerTID(LPDWORD lpdwTID) { FIXME("stub!\n"); - return E_NOTIMPL; + return E_FAIL; }
/***********************************************************************
http://bugs.winehq.org/show_bug.cgi?id=24201
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2010-08-29 13:10:47 CDT --- A google search gave me the MSDN documentation: http://msdn.microsoft.com/en-us/library/ms680683%28VS.85%29.aspx
Apparently, the "caller" may be from a different apartment, I guess implying that the call has been marshalled.
http://bugs.winehq.org/show_bug.cgi?id=24201
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.microsoft.com/ex | |press/Downloads/#2008-Visua | |l-CPP CC| |focht@gmx.net
--- Comment #2 from Anastasius Focht focht@gmx.net 2010-08-29 13:26:27 CDT --- Hello,
yes ole32.CoGetCallerTID() impl is straight forward. I already wished for it here (VS 2005): http://bugs.winehq.org/show_bug.cgi?id=14571 and got only a stub (which was acceptable at that time - only resulting in terminal spam) :-)
Regards
http://bugs.winehq.org/show_bug.cgi?id=24201
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ole32 |-unknown
--- Comment #3 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-08-29 13:37:41 CDT --- hmm, i did a bit more testing, and now it hangs again with the hacked ole32. Maybe it's not related to the CoGetCallerTID after all. I'll do some more testing. Changing component for now
http://bugs.winehq.org/show_bug.cgi?id=24201
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #4 from Dan Kegel dank@kegel.com 2010-08-29 14:02:05 CDT --- See bug 21259 for a similar problem. Does its workaround help?
http://bugs.winehq.org/show_bug.cgi?id=24201
--- Comment #5 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2010-08-29 14:14:18 CDT --- (In reply to comment #4)
See bug 21259 for a similar problem. Does its workaround help?
there seem to be a few workarounds in that bug. I tested the "mspdbsrv.exe -start -spawn -shutdowntime -1" and that seems to help! (At least tried 3 times, and those went all fine) Maybe this on is just a duplicate of bug 21259?
http://bugs.winehq.org/show_bug.cgi?id=24201
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #6 from Dan Kegel dank@kegel.com 2010-08-29 14:25:57 CDT --- Sounds like it!
*** This bug has been marked as a duplicate of bug 21259 ***
http://bugs.winehq.org/show_bug.cgi?id=24201
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Austin English austinenglish@gmail.com 2010-08-30 00:11:16 CDT --- Closing.