Re: [Ironpython-users] Memory Allocation in Iron Python

2012-01-23 Thread Dino Viehland
[email protected]] On Behalf Of Markus Schaber Sent: Sunday, January 22, 2012 11:44 PM To: Jim Pattee; [email protected] Subject: Re: [Ironpython-users] Memory Allocation in Iron Python Hi, Jim, You only gave us half of the source. Which way do you pass the memory

Re: [Ironpython-users] Memory Allocation in Iron Python

2012-01-23 Thread Jeff Hardy
There are a couple of known bugs in ctypes. Can you produce a self-contained example, perhaps using a libc on Windows API function as the target? - Jeff On Sun, Jan 22, 2012 at 3:50 PM, Jim Pattee wrote: > I am trying to allocate memory in Iron Python to receive text from a DLL. > The allocated

Re: [Ironpython-users] Memory Allocation in Iron Python

2012-01-22 Thread Markus Schaber
DE 167014915 Von: [email protected] [mailto:[email protected]] Im Auftrag von Jim Pattee Gesendet: Montag, 23. Januar 2012 00:50 An: [email protected] Betreff: [Ironpython-users] Memory Allocation in

[Ironpython-users] Memory Allocation in Iron Python

2012-01-22 Thread Jim Pattee
I am trying to allocate memory in Iron Python to receive text from a DLL. The allocated memory address is passed to the DLL and the text is copied by the DLL into the memory area. The following code, which works in CPython, is used: allocated =[] def MemoryAllocation(size): arr_type = c_char * si