On Sunday, October 28, 2012 6:26:28 AM UTC+8, Nobody wrote:
> On Sat, 27 Oct 2012 07:42:01 -0700, zlchen.ken wrote:
>
>
>
> > I have a DLL which written in C language, one of the function is to
>
> > allocate a structure, fill the members and then return the pointer of
>
> > the structure.
>
Hi Guys,
I have a DLL which written in C language, one of the function is to allocate a
structure, fill the members and then return the pointer of the structure.
After Python called this function, and done with the returned structure, I
would like to free the returned structure. How can I achie
On Thursday, November 18, 2010 8:03:57 PM UTC+8, Grigory Petrov wrote:
> Hello.
>
> I have a DLL that allocates memory and returns it. Function in DLL is like
> this:
>
> void Foo( unsigned char** ppMem, int* pSize )
> {
> * pSize = 4;
> * ppMem = malloc( * pSize );
> for( int i = 0; i < *