Re: [ctypes-users] bug in ctypes (0.9.9.3)?
by Thomas Heller other posts by this author
Feb 17 2006 7:39AM messages near this date
RE: [ctypes-users] bug in ctypes (0.9.9.3)?
|
[ctypes-users] Future plans for ctypes
Axel Seibert wrote:
> Dear list!
>
> Let me quickly try to explain what I try to achieve: I'm using ctypes to
> access an API that retrieves data from a server. In this example, I try to
> fetch four different attributes for, say, 100 objects. The API is designed
> in such a way, that it returns four lists (one for each attribute) of 100
> values (each). My more object oriented wrapper on top of it re-arranges the
> returned data in such a way, that I have a single list of 100 objects with
> four attributes each.
>
> The problem is, that the transfer into the destination object works fine.
> But accessing the value in the destination object afterwards results (in -
> roughly speaking - 1% of the cases) in corrupted data. The debug output at
> the end will show you...
> Maybe I should add, that I've been using ctypes for this integration for
> more than a year now with great success, that's why this bug puzzles me
> so...
Did your code work in previous versions of ctypes or not?
Briefly looking at the code, it seems that the 'self.arapi.functionCall()'
is only somewhat related to the code that follows. Is that correct?
If so, it should be possible for you to provide some standalone code that shows
the problem - please send me this standalone code (by private email ;-) to inspect
it.
> Maybe I'm missing something?
> Thanx,
> Axel
Thomas
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
ctypes-users mailing list
ctypes-users@[...].net
https://lists.sourceforge.net/lists/listinfo/ctypes-users
Thread:
Axel Seibert
Thomas Heller
Sumeet Sobti
Thomas Heller
Axel Seibert
Thomas Heller
|