I have developed a program in an XP enviroment using Borland Builder 6. It has since been installed on a computer with Vista. The program opens text files which are stored in the root directory of the program. The pathname is set in global constants like "name.txt". This works fine in XP but in Vista the program runs OK at first, then loses the files when required a second time. I have traced all the files and they reside in the same directory as the exe file so the impression I have now is that Vista must be running the exe file from another position. At one point even data in the DB was disappearing and returning later, which suggests there were two instances of the database running, however I am still confused as to how this could happen, and haven't been able to recreate this problem yet to investigate further. I suppose my questions are has anyone else experienced something similar, is my compiler outdated for the Vista enviroment, have I forgotten something fundamental regarding streaming text files. I am not sure which direction to take to look for a solution. Regards Nev.
kodak 0 Newbie Poster
ArkM 1,090 Postaholic
kodak 0 Newbie Poster
mitrmkar 1,056 Posting Virtuoso
kodak 0 Newbie Poster
ArkM 1,090 Postaholic
kodak 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.