Hi, I'm trying to fill an array of structures inside a function, but since I don't know its lenght, I'm wondering if it's possible to use "new" and "delete" in order to stretch the array ... The problem is that when I try to allocate dynamic memory inside the function I have a memory leak (I think this happens because the array created by the function is not the "real" array of the main). Is there a way to solve this trouble?