Hi,
I am requesting arrays of free-store memory as follows:
am referencing it (after allocating the
constituent void* values) as follows:
Both of which work fine. But,
fails. Shouldn't I be able to free individual units of memory returned as a group by calloc, as I'm trying to do here?
Thanks!
dora c
I am requesting arrays of free-store memory as follows:
Code:
ppvMemoryBlock =
( void** )calloc( iSize
,sizeof( void* ) );
am referencing it (after allocating the
constituent void* values) as follows:
Code:
myFunction( *(ppvMemoryBlock + iArrayCounter) );
Code:
free( ppvInMemoryBlock + iArrayCounter );
Thanks!
dora c