Fix of GetTempFileName Problem

The original code creates everytime a new temp file, which is not deleted. There is an limit of 65536 temp files. After this count the GetTempFileName function throws an IOException.