Gentlemen:

First of all - Thank You for the excellent application and the beautiful,
easy to read, code.

I am on Linux Ubuntu 13.04 using the source version of IUP 3.8

I am working on porting IUP to python using the Python CFFI which is
modeled on the Lua CFFI.

I was trying to use the function char* IupGetAttributes(Ihandle *ih) from
source file iup_attrib.c
in my python code and got the following unexpected result.

The Interface Element that I am trying to dump the attributes on has the
following attributes set
Callbacks on ACTION and K_ANY
SIZE = 200x

this is a hex dump of the returned buffer
41 43 54 49 4F 4E 3D 22   55 48 89 E5 48 83 EC 30  ACTION=" UH..H..0
48 89 7D E8 89 75 E4 48   89 55 D8 83 7D E4 22 2C  H.}..u.H .U..}.",
4B 5F 41 4E 59 3D 22 55   48 89 E5 48 83 EC 20 48  K_ANY="U  H..H.. H
89 7D E8 89 75 E4 8B 45   E4 83 F8 20 74 76 83 F8  .}..u..E  ... tv..
20 7F 11 83 F8 09 74 6C   83 F8 0D 74 67 83 F8 08   .....tl ...tg...
74 19 EB 67 3D 81 22 2C   53 49 5A 45 3D 22 32 30  t..g=.", SIZE="20
30 78 22

It seems the test for non string pointers is never tripping
I dug around with iupAttribIsPointer and iupClassObjectAttribIsNotString
and
could not get them to return True so the non string data could be output
to a string format.

I thought I would ask for advice before I continued to dig around in the
code.

Thanking you in advance for you time,

Richard
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to