|
| [WD19] - Division by zero |
| Iniciado por guest, 20,ene. 2015 10:41 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 20,enero 2015 - 10:41 |
Hi All
I have a strange problem. I have a routine which has been running fine for many months. The routine adds records to a file, 5 fields, a date and 5 numerics. Now I am getting an error:
Division by zero Error code 1085
Dump of the error of 'wd190vm.dll' module (19.0.176.4).
Identifier of detailed information (.err): 1085 Debugging information: Type operande 1 = 8 Type operande 2 = 8
The error occurs on the HADD() command. The record is added nonetheless. All variables which I am adding are simple numeric, all are greater than zero, none perform a division calculation. The record looks perfect to me; all values are as they are meant to me, nothing looks out of place or strange.
What could the problem be? I cannot see anything that would cause a division by zero?
Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,enero 2015 - 10:51 |
| Are you using triggers in that file? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,enero 2015 - 11:02 |
Hi Paulo,
No triggers. It is such a simple file and a simple loop to add records. Nothing special at all.
The record is added and I can see it. It looks perfect. The fields are correct.
The file has an index on a string + a date. But that also looks perfect.
The record looks exactly like similar records from previous days. |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 310 mensajes |
|
| Publicado el 20,enero 2015 - 11:20 |
Hello, Are you using a standard HF File ? Don't you have any declared trigger on the Hadd function ?
Most probably, you may have a corrupted index, have you tried to re-index the file ?
BR
Samir |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,enero 2015 - 11:39 |
Hi All
I have found the error and I believe this is a WinDev 19 bug. Here is what is going on.
1) I am processing a file using a FOR ... END loop 2) For each iteration I am adding a record to another file using HADD() to add the record 3) I increment a progress bar control 4) I repeat the FOR loop
So the problem was that I had an error in the line which was updating the display of the progress bar control which resulted in a division by zero. No problem there - my fault. The problem is that WinDev was telling me the error was occuring on the HADD() line rather than several code lines further down where I was updating the progress bar control and the actual division by zero was happening.
Thanks |
| |
| |
| | | |
|
| | | | |
| | |
|