We've built an application which relies heavily on ClearWin functions such as Rename@ and Erase@. We call DosErr@ after these functions are used to handle any problems encountered. Increasingly over recent years we've had more and more of our customers getting one of these error pop-ups:
- 'Cannot create a file when that file already exists'
- 'The system cannot find the file specified'
- 'Process cannot access the file because it is being used by another process'
Are these error messages being seen in other people's programs?
What are the common causes for these errors, i.e. what's causing the function to fail?
We suspect that when computer resources are being heavily used that (for example) an Erase@ command may take a long time to finish so that when a Rename@ command is used on the next line, the file we're trying to erase hasn't actually been erased yet. Does this seem like something that could happen, and if so, what can we do to prevent it?
We really like using ClearWin, but these errors are becoming a serious problem for our customers. The people reporting this problem seem to be using older computers with Windows XP and 4 GBRAM, but requiring all of our users to get a hardware upgrade would not be a popular solution!! Any advice or thoughts would be most appreciated!
Clay Jones