ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Japanese Excel 2002 crashes because of CoTaskMemFree, why? (https://www.excelbanter.com/excel-programming/325434-japanese-excel-2002-crashes-because-cotaskmemfree-why.html)

Dave Rafkind

Japanese Excel 2002 crashes because of CoTaskMemFree, why?
 
I used VB6 to create an ActiveX control. I used Edauardo Morcillo's OleLib
type library to gain access to OleCreatePropertyFrame, so I could
programmatically pop up the property pages from the control.

However, when this control is used in Excel 2002-SP3 on Windows XP (both
localized with the appropriate Japanese MUI packs), programmatically using
the property pages crashes Excel. I have discovered that this is because
after the call to OleCreatePropertyFrame, I have to free the memory from
ISpecifyPropertyPages.GetPages by using CoTaskMemFree. This call to
CoTaskMemFree crashes ONLY on Japanese Excel 2002.

What might be going on? Thanks for your help.



All times are GMT +1. The time now is 12:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com