abnercoimbre
I would love to hear how this all ends.
I'm still waiting on confirmation from Alberto that my fix worked, but the problem turned out to be that QueryPerformanceFrequency was returning something smaller than one million. Since I was trying to get an approximate time in milliseconds I just divided by one million with integer division. That would make a 0 on Alberto's machine which later ends up in the denominator and causes a crash. I (think) I fixed it by switching the denominator over to a floating point number.