http://bugs.winehq.org/show_bug.cgi?id=30839
Bug #: 30839 Summary: BSTR cache corrupts most of cached BSTR entries Product: Wine Version: 1.5.5 Platform: x86-64 OS/Version: Linux Status: NEW Keywords: testcase Severity: normal Priority: P2 Component: oleaut32 AssignedTo: wine-bugs@winehq.org ReportedBy: dmitry@baikal.ru CC: jacek@codeweavers.com Classification: Unclassified
http://www.winehq.org/pipermail/wine-patches/2012-June/114723.html imitates what pretty large and complex application does, and shows that BSTR cache in Wine corrupts most of cached BSTR entries:
vartype.c:6145: good_length_entries 225, good_string_entries 162 vartype.c:6148: Test failed: good_string_entries 162 out of 256 vartype.c:6164: good_length_entries 97, good_string_entries 67 vartype.c:6166: Test failed: good_length_entries 97 out of 256 vartype.c:6168: Test failed: good_string_entries 67 out of 256
Under Windows most of cached strings stay valid for pretty long time after SysFreeString() is called.
Jacek, I'm adding you to the cc: list because you are the authour of BSTR cache in Wine.