ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ctypes-users
ctypes-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved