First, my apologies if this post turns up in another thread. I'm new to the fourm, and tried to post the problem as a guest a couple of days ago, but haven't seen a trace of it since. Now the problem...
In a given release of our application, When the user tries to print or view a particular report, their system hangs, and they must shut FoxPro down. To clarify, on another release, another report will cause the hang.
We have an app in which the report forms are a mix of DOS only, DOS and Win and Win only. This problem only arises with .frx files that have Windows records.
We are not using the project manager for our application; we distribute .fxp files.
The problem only occurs in FoxPro runtime. It does not reproduce in interactive mode.
Through pure luck, I found a way to 'fix' the problem, but it is not a fix in the sense that I changed any code or system settings.
For this discussion, assume that Master.prg is the master program file. The first time the problem occurred, by chance I recompiled Master.prg on my computer and the problem was gone. We assumed it was a problem with the devel manager's machine and worked from that premise, avoiding compiles on that box.
Then, a couple of releases later, the problem reappeared with another report. This time, recompiling on my computer created the problem, while another programmer's machine gave us the 'fix'. Hummmm...the third time we caught in pre-release and were able to 'fix' it again the same way.
Naturally the skeptical minds of the company determined that my end of the hall was smoking funny cigarettes. Despite our testing, it happened again on a client's machine, and none of our machines would give us working code. The skeptics spent several days tweaking memory, modifying code, playing with CONFIG.fpw, putting FLUSH commands everywhere, and nothing was working. Clients were warming up a bit, and I got a bit frustrated, so I decided to play with Master.prg again. I added two lines to end of it:
PROCEDURE Dummy
RETURN
when I compiled the problem was gone!
I don't mind doing some intuitive work, but would prefer to take a more reasoned approach to this. I am 100% certain that it will resurface if we don't figure it out, but I don't have a clue where to start looking. Any ideas?
In a given release of our application, When the user tries to print or view a particular report, their system hangs, and they must shut FoxPro down. To clarify, on another release, another report will cause the hang.
We have an app in which the report forms are a mix of DOS only, DOS and Win and Win only. This problem only arises with .frx files that have Windows records.
We are not using the project manager for our application; we distribute .fxp files.
The problem only occurs in FoxPro runtime. It does not reproduce in interactive mode.
Through pure luck, I found a way to 'fix' the problem, but it is not a fix in the sense that I changed any code or system settings.
For this discussion, assume that Master.prg is the master program file. The first time the problem occurred, by chance I recompiled Master.prg on my computer and the problem was gone. We assumed it was a problem with the devel manager's machine and worked from that premise, avoiding compiles on that box.
Then, a couple of releases later, the problem reappeared with another report. This time, recompiling on my computer created the problem, while another programmer's machine gave us the 'fix'. Hummmm...the third time we caught in pre-release and were able to 'fix' it again the same way.
Naturally the skeptical minds of the company determined that my end of the hall was smoking funny cigarettes. Despite our testing, it happened again on a client's machine, and none of our machines would give us working code. The skeptics spent several days tweaking memory, modifying code, playing with CONFIG.fpw, putting FLUSH commands everywhere, and nothing was working. Clients were warming up a bit, and I got a bit frustrated, so I decided to play with Master.prg again. I added two lines to end of it:
PROCEDURE Dummy
RETURN
when I compiled the problem was gone!
I don't mind doing some intuitive work, but would prefer to take a more reasoned approach to this. I am 100% certain that it will resurface if we don't figure it out, but I don't have a clue where to start looking. Any ideas?