View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dave Rafkind Dave Rafkind is offline
external usenet poster
 
Posts: 1
Default 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.