PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Marty Francom on September 08, 2006, 06:27:10 PM

Title: Screen Repaint problem
Post by: Marty Francom on September 08, 2006, 06:27:10 PM
Paul,
    When the Apothesoft program is being run on a network, occasionally the program will seem to "hang" while a screen is being re-painted.  This seems to only occur when the program is running on two or more network stations.  The repaint hang occurs just on the network station and not on the host computer.   When this problem occurs, only part of the screen gets painted and the rest does get painted for 10 to 15 seconds.  When this occurs and I click the mouse on the screen the pointer turns to an "hour glass".  But eventually the screen will paint.  
.
Do you have any suggestions that might remedy this problem?
...Marty
Title: Screen Repaint problem
Post by: TechSupport on September 08, 2006, 11:41:45 PM
It hard to know for sure. I expect that the server machine is performing some tight loop - probably accessing a lot of database records? Do you know what process is happening at the time the screen repaint "hangs". If it is in a loop then you can try placing a FF_DoEvents in the loop (or even try placing one immediately prior to entering the loop). This will allow the loop to relax enough so that the operating system can finish the repainting. WM_PAINT messages have a low priority in the Windows queue.