unsigned long *
Brought to you by:
theller
I have a C function with this signature
void zzz(char *mem, unsigned long length, unsigned
long *buffer);
If I pass a byref(c_ulong) I get this error message
TypeError: argument number 3: a 'unsigned long *'
is expected, 'CArgObject(<cparam 'P' (001093f0)>)' is
received
If I pass a pointer(c_ulong) I get this error message
TypeError: argument number 3: a 'unsigned long *'
is expected, 'LP_c_ulong(<ctypes.LP_c_ulong object at
0x58130>)' is received
python 2.4.1, gcc 3.3, osx 10.3.8
Logged In: YES
user_id=11105
Which ctypes version do you use?
Logged In: YES
user_id=1033577
Sorry. ctypes 0.9.6 and again under cytpes 0.9.7beta.
Larry
Logged In: YES
user_id=11105
I cannot reproduce this error.
I don't think it is related, but I'm currently only able to
test this under Windows - the sourceforge compile farm
doesn't let me access the Macs.
It doesn't seem the above error messages are exactly what
ctypes raises - can you please provide a complete small
script that triggers the error, and the exact error message?
And please use version 0.9.6, not 0.9.7beta.
Logged In: YES
user_id=1033577
Apologies, but I'm swamped. ...perhaps later in the week? L
Logged In: YES
user_id=1033577
Finally got back to it.
I too am trying to recreate and things are not exactly as
they were. The best I can figure is that I may have been
using the .so created by swig and not the "pure" library.
So unless or until, perhaps we close this one out.
Question: Does this condition have a sufficient signature
that it could be detected and perhaps a different error
message? ...just a thot.
Logged In: YES
user_id=11105
Yes, a better error message would be nice.