Versions des environnements
Network:
Windows 2008 Server
>I'm testing a long running vfp program and found these problems
>
>Wait window messages freeze (in different parts during different runs)
>Added debugout message, but it also freezes.
>I set escape on, but program doesn't respond to ESC
>Added saving message to disk which shows that program continues to run
>Finally process finishes correctly
>
>It's almost like it locks screen and keyboard out.
>
>I have windows 7 64 bit and VFP sp2. Any idea what may be the problem?
>
>TIA,
>
>Alex
If you've got an extended period of time where you're not performing any sort of console input, occasionally you'll see situation where Windows complains that a program has stopped running (Windows doesn't like it if a program doesn't perform console I/O for an extended period of time). If you've got heavy processing going on, you're probably going to get this there have been some occasions where in the midst of a processing loop I'd placed an occasional call to DOEVENTS -- so that form events (such as one for a STOP button that I'd put on a form) could be processed (note than each time DOEVENTS is processed, there will be a slight delay, so overall it does tend to slow processing down). Of course, this could only be done if the processing is occurring within a loop that is in VFP code. If the long-running process is a query or an external program, you're probably not going to have an opportunity to insert a DOEVENTS in the loop process.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement