James Teh schrieb: > Hi Thomas, > > In GUID.py, _CoTaskMemFree is defined as oledll.ole32.CoTaskMemFree. > While oledll is fine for most ole32 functions (as they return HRESULT), > CoTaskMemFree is an exception and has a return type of void. In Windows > 7, it seems that this does matter; the return value is sometimes -65535, > which raises an exception due to a non-0 HRESULT. This is similar to the > issue with ITypeLib::ReleaseTLibAttr. > > Btw, I saw this exception as a result of line 44 (in GUID.__unicode__): > _CoTaskMemFree(p) > > I have attached a patch to fix this. > > Thanks. > > Jamie
Thanks for the patch; it is now in SVN. -- Thanks, Thomas ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users