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

2012-01-22 Thread Markus Schaber
Hi, Jim, You only gave us half of the source. Which way do you pass the memory address to the native DLL? One difference is, for example, that .NET relocates objects sometimes, so they need to be pinned. Best regards Markus Schaber -- ___ We software Automation. 3S-Sm

[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