Content-Type: text/plain; charset=us-ascii
I am trying to use realloc to allocate a growing block of memory. I
have been able to use it with other O/S's , particularly Windows NT 4.0,
but with VxWorks, I get a mempartfree error on the second realloc.
Here is the code:
size = 0;
count = 0;
files = (syncFile *) realloc( files, sizeof(syncFile) * size);
syncFile is a basic structure.
The idea is to grow the files array with each item read from the file.
On the second realloc I get a memPartRealloc: invalid block xxxx in
Is this the proper way to allocate memory with VxWorks or do I need to
create a memory partition first.