We have had similar trouble with an HP computer that had windows ME. The best way we found around this problem was to run the windows disk utilities - scan disk and defrag. Between the two, they seemed to find and fix disk errors and some of the other small registry errors which locked up the system.
To fix even faster - we purchased a Norton systems antivirus with utilities CD. Once loaded, running just the "begin scan" from the main icon, we got loads of rejesty errors and let the software "fix" these problems. This took less time and hassle, but did have to run the utilities to fix. This also works well on windows 98 and 95.