I use realloc to find a new memory location assign it to a pointer and copy its old data to the new location. I get NULL. I tryed to use MessageBox and itoa functions to find out the new size in bytes witch is 24bytes. I don't know why it returns NULL. I used malloc previously to allocate a poniters starting memory. Here is the line that returns NULL;

Lines.lpLines =(char **)realloc(Lines.lpLines, sizeof(char **) * Lines.max );

Anyone know what the problem could be?

Thanx in advance!