memory allocation/deallocation
Hi,
I'm trying to figure the error message that I get when trying to deallocate an array of pointers I'm allocating.
Here's the allocation and free'ing lines:
Code:
CMyEdit *txtboxf[50];
txtboxf[i] = new CMyEdit();
free(txtboxf);
in run-time I get an error that Bebud assertion failed! in File:dbgheap.c
The same problem occures with this:
Code:
char line[80];
free(line);
I've read tutorials and I think I'm doing what they are telling me. How do I free arrays properly?