Fixed crash when creating window, deleting it and creating a new one
Merge branch 'platform2' into core
Fixed vector writing to logfile