[Bug 3756] ATMEL AVRStudio4 crash

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Oct 10 03:39:12 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=3756


Andrey Turkin <andrey.turkin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.turkin at gmail.com




--- Comment #12 from Andrey Turkin <andrey.turkin at gmail.com>  2008-10-10 03:39:11 ---
(In reply to comment #8)
> CoTaskMemAlloc/Free do not use the same heap as the CRT.
> They use a dedicated heap created on your behalf when the OLE DLL loads.
No, on Windows these use system heap - the one returned by GetProcessHeap(). On
Wine they do the same.
> First, on the SysAllocString and SysFreeString, they are just convenience
> functions to CoTaskMemAlloc and CoTaskMemFree.
Sort of true :)
The culprit is probably BSTR caching; SysXxxString does not always allocate or
free memory for BSTRs so double frees would probably be caught by these
functions and silently discarded (I think checked oleaut32 version would cry
out loudly on such thing). See http://support.microsoft.com/kb/139071 for some
info and way to disable caching. Please try if disabling the cache will make
this app crash on Windows


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list