static variables start off as zero. So the above code is equivalent to:Code:static int *ids; static LPSTR *titles; static HWND *pages; ts->ids = ids; ts->titles = titles; ts->pages = pages;
However, I don't know why you are crashing.Code:ts->ids = NULL; ts->titles = NULL; ts->pages = NULL;