xdata struct WindowList *temp;
// temp=temp.NextWindow; wrong
temp=temp->NextWindow;