actually, the 32/64 bits integers was not the problem i was talking, sorry it was my mistake.

Seem that in dual proccesors the queryperformancecounter and queryperformancefrequency when called by your program somtimes it will be executed by one procesor and somtimes it is executed by the other proccesor, the resulting value could be different depending which processor made the execution; that explain why the problem is resolved when one of the procesor is turned Off in the seting.

I got that from here:

http://msdn.microsoft.com/library/de...ncecounter.asp

Seem you can fix the problem forcing your program to be always executed just by one of the processors using the setthreadaffinitymask function:

http://msdn.microsoft.com/library/en...finitymask.asp


good luck.
tp