If you're moving from '98 to 'XP then you might need to have CPU 'slicing' (see VFAQ here) added to your code or use something like TameDOS.