Every time i try to run GetComputerName my system crashes. Has anyone had this before? Does anyone know why this is happening?

TIA