![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an intermittent problem with a VFP 6 program of mine. Sometimes, for no reason that I have been able to figure out, it will throw an alias not found error. The program is checking that financial figures are correct and runs through an entire table. The error occurs in a method, and the table is opened not long before the erroneous statement. There is no execution path where the table can have been closed before the error-throwing statement is executed. Still, the error occurs. If I rerun the program, it works. (Only one time has it failed twice in a row.) Oddly, the recno() is always just over 50000 though it is not consistent as to exactly where. I have been unable to replicate the problem. The DOS is Windows XP. The table is local. I have checked and rechecked my code. As far as I can see, there is no way for the error to occur (assuming no bug in VFP6, no hardware failure, etc.). Do you have any ideas about what else I could look at/for? |
#3
| |||
| |||
|
|
I have an intermittent problem with a VFP 6 program of mine. Sometimes, for no reason that I have been able to figure out, it will throw an alias not found error. The program is checking that financial figures are correct and runs through an entire table. The error occurs in a method, and the table is opened not long before the erroneous statement. There is no execution path where the table can have been closed before the error-throwing statement is executed. Still, the error occurs. If I rerun the program, it works. (Only one time has it failed twice in a row.) Oddly, the recno() is always just over 50000 though it is not consistent as to exactly where. I have been unable to replicate the problem. The DOS is Windows XP. The table is local. I have checked and rechecked my code. As far as I can see, there is no way for the error to occur (assuming no bug in VFP6, no hardware failure, etc.). Do you have any ideas about what else I could look at/for? One additional bit of information that I have just noted. Among the things that my general error routine dumps to the error log file is the output of list status. That shows the table as not having an alias. I most definitely specify one. (The error message is that the one that I specified can not be found.) Even if I did not, there should still be a default one. |
#4
| |||
| |||
|
|
I encountered such behaviour a coupe of years ago. In my case the table with the "missing" alias() had just been closed before beeing opened again. Also, if I was in the debugger, sometimes the watch window |
|
would show part of dbf() as alias(), sometimes even fluctuating. |
![]() |
| Thread Tools | |
| Display Modes | |
| |