Hello,
We have encountered an odd issue that I wanted to point out, and find out if anyone had seen something like it before.
In previous versions of our software, the shapefiles (and their associated files, including index files) were copied up from the install directory (c:\ProgramData\OurApp) to the user’s app data directory (c:\users<login>\AppData\Roaming\OurApp), and then the map layers were created from the files there.
In this year’s version, we decided to create the map layers with the files in the install directory (c:\ProgramData\OurApp), to reduce startup time, and not have multiple copies of the files on a machine. For most users, this has worked as expected, without any problems. However, several users emailed us stating that, while using the program, that the map turns all blue (our background color), with all of the land (shapefiles) vanishing. Restarting did not solve the issue, but re-installing the program did.
The strange thing was this: after some investigation, it turns out that the shapefiles (and their associated files) were disappearing from the install directory (c:\ProgramData\OurApp). Looking at the files in that directory showed that they were no longer there. This was true for all of the shapefiles that were loaded in the map at the time they stopped showing up. Again, the only way to ‘solve’ the issue was to have the user re-run the installer, but inevitably the problem would occur again.
We have fixed the issue (apparently, still awaiting confirmation) by reverting to our previous model of copying the files into the user’s data directory, where they have full access to the files.
A note on the machines we are seeing this happen on: they tend to be older, less powerful computers, many with only 2 gigs of installed RAM. They are running Windows 7. Most have been government computers, and my contain extra security measures or lockdowns.
Has anyone ever come across an issue like this before? Can you think of a reason why the files would be deleted? We are assuming it has something to do with the files being in \ProgramData, and many users have just read-only rights to that folder.
We are currently running v7 of the MapSuite software, Desktop edition. If you need any more info, please let me know.
Thanks,
Dib Oglesby
Sea Island Software
Odd issue with .shp files vanishing
Hi Dib,
Okay, we got your issue and the issue does be wired.
I remember map suite doesn’t have any cases to delete the shape files and I can only suspect this is related with their machine special environments like you guess, for example does their machine install any security software? I would like to know more details about their machine if possible so that we might have some ideas or to recreate the issue if better.
Also, I am wondering when the files are deleted? Are they deleted when your application is starting or the files are using in the application? Besides, would you mind to search all the delete codes on your whole project to see if any potential codes related with it?
I will keep searching on this issue and let you know if any updates/guesses.
Thanks,
Troy
Troy,
It looks like it was an issue with the client rolling out a system update at the same time several users were updating to our newest version. No one to blame but themselves.
Thanks,
Dib
Hi Dib,
This scenario isn’t occurred on Map Suite updating, I can’t reproduce this scenario, I guess that it may be a updating issue in your updating application, such as copying files so that replace the old files.
In this case, these files will be deleted first, then the new files will be copied. If several users take this operation at the same time, some conflicts will be occurred.
Thanks
Don