For some strange reason my game always crashes when i play in windowed mode. Has anyone else had this problem and knows how to fix it?

Sorry if this has been a previous topic i searched and could not find anything.

thanks!