Hello All,

Mine could be a tricky problem.
I have developed a mail server (using free Socket Wrench component instead of winsock control). There is a password protected access database which is used to store few info. Now, here's the catch. In most of the PC (with winxp, win98, win2003) everything is working perfect, but in one winXP pc and one Win 98 pc, the application shows an error that it is not able to open the database. Would somebody tell me how I can debug this problem ? In my development PC everything works fine, and works fine at almost all other place I tested except for the two places i mentioned.

Sometimes I also get "Illegal Operation" error. What could be the problem?

I also keep a log file to save all the operation I do in the application. This log file could be viewed from the application. (I provided a button. If user clicks on this button, the log file would be opened in notepad. simple). One day I got an error saying that the log file is in use by another application, hence my application cannot access it. I thought that may be the user is keeping the log file open when I'm trying to write to it. So now what I do is before displaying the log file to the user, I make a copy of the original log file and display this copy to user, so that I can write to the original in the background. But I'm stilll getting this problem SOMETIMES.

There's another issue. When I download mail I make temporary txt files and store it in a temp location. But if there's a virus in it, and if there's a anti-virus running in the application, the antivirus either locks the file or deletes it. But in the background I'm trying to access this file, and I get error. Is there any solution to this?


Any help on these issues would be highly appreciated, as I'm struggling with these for the last six months. PLEASE.