I'm trying to open a simple text file for writing and I'm running into some intermittent problems. The line of code in question is:
Most of the time it works just fine, but every once in a while I get the error:
SHARE.EXE was not loaded, or a shared region was locked
This error seems somewhat bogus since I'm running on Windows XP Pro, and I thought that SHARE.EXE was retired back around Windows 98. To make matters worse, I don't have to do anything (reboot, etc.) to clear the error, I just run the program again and it completes successfully.