Hi guys,

I am programmer of a project (VB6), my program reads lots of data from a big text file, parse the information and start some mathematics calculation on every single line of the data.

Anyway, a run of my program takes like 10minutes and every second a calculation is being applied, so while my program is running the CPU usage is always up to 50% so causes my Windows XP to malfunction and slow down. Is there anyway to reduce the CPU usage? I am using DoEvents after each reading and parsing of the data and also after each calculation.

Any hints used to solve this kind of problem is appreciated guys.