| | |
problems with my program installed on Vista
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 8
Reputation:
Solved Threads: 0
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.
•
•
Join Date: Dec 2008
Posts: 8
Reputation:
Solved Threads: 0
Thanks, however hardcoding a full pathname doesn't seem to be a very elegant solution. I haven't experienced this before in XP where I have distributed several programs using relative pathnames without incident. Currently the problem is only appearing on the Vista platform and runs perfectly on my XP. How would I stream a file from an unknown directory? And I still don't comprehend why the program finds the file in the first instance and then loses it subsequently until I close and rerun the program. I shall investigate more so I can refine the symptoms better.
•
•
Join Date: Dec 2008
Posts: 8
Reputation:
Solved Threads: 0
Hey Thanks,
you may be onto something here so I shall do what you suggest. I haven't had a lot to do with Vista. Further to my prior posts, I have now borrowed a laptop with vista installed, installed my program and it seems to run fine so far. The only other thing I can think of is the program corrupted somehow during the install, but I do not have access to the computer to test this theory currently. I think I'll mark this as solved, thanks to you both for giving me direction. Much appreciated.
you may be onto something here so I shall do what you suggest. I haven't had a lot to do with Vista. Further to my prior posts, I have now borrowed a laptop with vista installed, installed my program and it seems to run fine so far. The only other thing I can think of is the program corrupted somehow during the install, but I do not have access to the computer to test this theory currently. I think I'll mark this as solved, thanks to you both for giving me direction. Much appreciated.
•
•
Join Date: Dec 2008
Posts: 8
Reputation:
Solved Threads: 0
ArkM, Although using GetModuleFileName won't help in this case. Unless I misunderstood the reams I read last night, Vista virtualization copies my text file to a virtual folder, so it turns out I was reading the original and writing to the copy, hence my thoughts about two instances running at once! I don't think it is supposed to work like that but in my case it certainly appeared to be. Once I get hold of the Vista laptop I can see if in fact this is the case.
![]() |
Similar Threads
- Vista freeze ups/lock ups,weird behavior HELP!!!! (Windows Vista and Windows 7)
- Fought with Vista (Windows Vista and Windows 7)
- Problems on reboot/restart with Vista (Windows Vista and Windows 7)
- Running vista, error at startup, freezing. (Troubleshooting Dead Machines)
- Vista programming in C++? (Windows Vista and Windows 7)
- Are these features included in Vista (Windows Vista and Windows 7)
- Application installation problems and Update package installation problem In VIsta (Windows Vista and Windows 7)
- Lots of problems with vista (Windows Vista and Windows 7)
- Why is everyone so excited about Vista? (Windows Vista and Windows 7)
Other Threads in the C++ Forum
- Previous Thread: LoadImage to array
- Next Thread: Merge sort algorithm?
| Thread Tools | Search this Thread |
api array arrays based binary c++ c/c++ calculator char char* class classes code coding compile console conversion convert count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






)... 