Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP program seems to freeze but is running
Message
De
03/01/2014 12:16:19
 
 
À
03/01/2014 11:22:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01591290
Message ID:
01591293
Vues:
86
>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
Fil
Voir

Click here to load this message in the networking platform