That's why one should allocate and free up the memory in the same programming environment.Say allocate/free up in VB;allocate/free up in C/C++and never allocate (very dangerous) VB and free up in C/C++ or vice versa.
SindrebWhy don't you use Linked Lists? It allows you to add/remove any number of members and doesn't restrain you on the dimensional side.Have a look at any C++ book