|
mh, it's acting up.: msg#00149programming.swig
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: using stdout/stderr with python: 00149, Martin F Krafft |
|---|---|
| Next by Date: | Re: Re: using stdout/stderr with python: 00149, Kevin Smith |
| Previous by Thread: | [PATCH] assortment of problemsi: 00149, Steve Fink |
| Next by Thread: | Re: mh, it's acting up.: 00149, Marcelo Matus |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |