DaleFrench
Programmer
Hello again and I am sorry for kinda of double posting, but after experimenting I think I may have found a solution, but I am not sure. Here is my problem. I have a customer that sent me his data from a Worthless Check program we wrote(err My Dad wrote) in Foxpro 2.6a. His problem is that all the sudden many of his records keep locking up the computer when he tries to print any report from that record. Other records will work fine. He is on a network and the other computers do the same. So I download the data from my email.
Now after I unzipped the data, here is what happened. When I ran the program from within the command window of the langauge foxpro 2.6a none of the records froze the computer. Then I decided to make a shortcut on my desktop to the executable file. It was then that those records locked or froze the computer (had to CTRL ALT DeL) to exit. Everything was looking in the same directory. This same thing happens when I use other executables from other counties that used the same data in the same way. I also did foxfix and deleted and recreated the indexes - so the problem was not in the indexing or executable file. But why did it run fine from my foxpro languange envirement and not from the shortcut from my desktop? Well here is what I found out after much exploration.
The config.fpw file in my c:\fpw26 and my c:\base\wc directory(where my program is being run) are the exact same. RESOURCE IS SET ON. Now I SET RESOURCE OFF in the c:\base\wc directory and the records still freeze my computer from the shortcut on my desktop. Now I copy the foxuser.dbf file and foxuser.fpt from my c:\fpw26 directory and SET RESOURCE ON in the config.fpw file in my c:\base\wc directory and NOW I can view the records that I earlier couldn't. Problem fixed? I delete the foxuser files from my c:\base\wc directory with Resource still ON and Records Lock up again from running the program from my shortcut. I replace them and it works fine. I SET RESOUCE OFF in the config.fpw file in the c:\base\wc directory With the foxuser files still there and records freeze again. I set it back ON and it works fine. So I have a few questions:
1: Can my solution for this customer be to tell him to delete any and all foxuser.* and config.fpw files from all his workstations and his server and then to replace them with my foxuser files and updated config.fpw file?
2: Can foxuser.dbf and .fpt files suddenly become corrupt?
3: The data looks fine to me but can it possibly be that he has corrupt records? He has over 51000 records, it would be immpossible for me to find all corrupt ones(if that is case)
4: Not really a question, but he runs the same program in another county that is networked and used, and he has no such problems. Executable File is the exact same.
5: What exactly does having Resource set off and on mean and why has it solved my problem on my computer with his data?
Any help would be GREATLY appreciated. Thanks in advance.
Now after I unzipped the data, here is what happened. When I ran the program from within the command window of the langauge foxpro 2.6a none of the records froze the computer. Then I decided to make a shortcut on my desktop to the executable file. It was then that those records locked or froze the computer (had to CTRL ALT DeL) to exit. Everything was looking in the same directory. This same thing happens when I use other executables from other counties that used the same data in the same way. I also did foxfix and deleted and recreated the indexes - so the problem was not in the indexing or executable file. But why did it run fine from my foxpro languange envirement and not from the shortcut from my desktop? Well here is what I found out after much exploration.
The config.fpw file in my c:\fpw26 and my c:\base\wc directory(where my program is being run) are the exact same. RESOURCE IS SET ON. Now I SET RESOURCE OFF in the c:\base\wc directory and the records still freeze my computer from the shortcut on my desktop. Now I copy the foxuser.dbf file and foxuser.fpt from my c:\fpw26 directory and SET RESOURCE ON in the config.fpw file in my c:\base\wc directory and NOW I can view the records that I earlier couldn't. Problem fixed? I delete the foxuser files from my c:\base\wc directory with Resource still ON and Records Lock up again from running the program from my shortcut. I replace them and it works fine. I SET RESOUCE OFF in the config.fpw file in the c:\base\wc directory With the foxuser files still there and records freeze again. I set it back ON and it works fine. So I have a few questions:
1: Can my solution for this customer be to tell him to delete any and all foxuser.* and config.fpw files from all his workstations and his server and then to replace them with my foxuser files and updated config.fpw file?
2: Can foxuser.dbf and .fpt files suddenly become corrupt?
3: The data looks fine to me but can it possibly be that he has corrupt records? He has over 51000 records, it would be immpossible for me to find all corrupt ones(if that is case)
4: Not really a question, but he runs the same program in another county that is networked and used, and he has no such problems. Executable File is the exact same.
5: What exactly does having Resource set off and on mean and why has it solved my problem on my computer with his data?
Any help would be GREATLY appreciated. Thanks in advance.