[python-win32] MemoryError: CreatingSafeArray when trying to use VB COM API
Rex Corrovan
rex555 at hotmail.com
Tue Jan 9 21:54:04 CET 2007
I have a VB COM App I am trying to use.
I used makepy and it generated the wrapper. Then I go to use:
import win32com.client
o = win32.client.Dispatch("vbAPI.App")
o.myFunct(arg1=("test","test"), arg2=1, arg3=("test2","test2"))
The function in the makepy generated wrapper looks like this:
def myFunct(self, arg1=defaultNamedNotOptArg, arg2=defaultNamedNotOptArg,
arg3=defaultNamedNotOptArg):
return self._ApplyTypes_(1610809344, 1, (8, 0), ((24584, 3), (11, 1),
(24612, 3)), 'myFunct', None, arg1, arg2, arg3)
The output I get is:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File
"C:\Python24\lib\site-packages\win32com\gen_py\0A54F42C-8CBC-4C09-9F6B-C976C6476689x0x1x1.py",
line 43, in myFunct
return self._ApplyTypes_(1610809344, 1, (8, 0), ((24584, 3), (11, 1),
(24612, 3)), 'myFunct', None, arg1
File "C:\Python24\Lib\site-packages\win32com\client\__init__.py", line
446, in _ApplyTypes_
return self._get_good_object_(
MemoryError: CreatingSafeArray
I am baffled as to what is going on here. Anyone help?
Thanks
Rex
_________________________________________________________________
Get live scores and news about your team: Add the Live.com Football Page
www.live.com/?addtemplate=football&icid=T001MSN30A0701
More information about the Python-win32
mailing list