False alarm. It was a UBD (User Brain Damage) problem on my C++ side.
Move along. Nothing to see here.
-S
Sandy Walsh wrote:
I have a piece of code that looks like this:
control = CreateObject("ImpathVideo2.ImpathVideo2Ctrl")
error = control.Connect(self.ip, self.port, self.host_ip)
error = control.Disconnect()
error = self.control.Connect("10.0.0.0", 9999, "")
assertEqual(-2134704126, error) # We expect EC_CONNECT_FAIL
The first call to Connect/Disconnect works fine (as expected), but the
second call is expected to fail.
The IDL looks like:
HRESULT Connect([in] BSTR streamIPAddress, [in] short
streamUdpPort, [in] BSTR hostIPAddress, [out, retval] long* error);
The HRESULT is always S_OK and on failure, the error "out retval"
parameter is set.
This works fine under win32com, but with comtypes the second Connect
gives a WindowsError
WindowsError: exception code 0xe06d7363
And no other details are given:
Args: ('exception code 0xe06d7363',)
Message: exception code 0xe06d7363
StrError: None
Filename: None
WinError: None
Any idea why comtypes would be unhappy with returning this error but
win32com does the right thing?
Thanks,
Sandy
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users
begin:vcard
fn:Alexander "Sandy" Walsh
n:Walsh;Alexander "Sandy"
org:Impath Networks
adr:Suite 100;;42 Payzant Ave;Halifax;NS;B3B 1Z6;Canada
email;internet:[EMAIL PROTECTED]
title:Software Developer
tel;work:902-468-1010 x 246
x-mozilla-html:FALSE
url:http://www.impathnetworks.com http://www.pstdvr.com
version:2.1
end:vcard
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users