logo       

mh, it's acting up.: msg#00149

programming.swig

Subject: mh, it's acting up.

Mh, Swig doesn't seem to like me...

I have a function

PhidgetQuadServo* phidget_new_PhidgetQuadServo();

and when I call it from Swig, it returns:

<C PhidgetQuadServo instance at _10c21b08_p_PhidgetQuadServo>

I also have a function

phidget_return phidget_quadservo_open(PhidgetQuadServo* const qsc,
unsigned int serial, unsigned short retries);

And when I simply pass the object obtained from the *_new_*
function, Python barks at me:

Traceback (most recent call last):
File "./test", line 18, in ?
ret = phidget_quadservo_open(qsc, 1493, 3)
TypeError: Type error. Expected _p_PhidgetQuadServo

... but qsc is a _10c21b08_p_PhidgetQuadServo, that should be the
same as a _p_PhidgetQuadServo, no?

What's going on?

Thanks,

--
Martin F. Krafft Artificial Intelligence Laboratory
Ph.D. Student Department of Information Technology
Email: krafft@xxxxxxxx University of Zurich
Tel: +41.(0)1.63-54323 Andreasstrasse 15, Office 2.18
http://ailab.ch/people/krafft CH-8050 Zurich, Switzerland

Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
Spamtraps: krafft.bogus@xxxxxxxx madduck.bogus@xxxxxxxxxxx

"she is absolutely inadmissible into society. many a woman has a past,
but I am told that she has at least a dozen, and that they all fit."
-- oscar wilde

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise