Página 1 de 1

How to avoid the Windows 'not responding' condition

Publicado: Vie Sep 21, 2012 2:39 pm
por Guest
Hi,
I'm processing about 250,000 records in Oracle, generating a text file from some of the recordsets.
During the time that the processing is taking place, you can't see any details on the form, and on the top is the standard 'not responding' message.
The application is clearly working, because if you wait long enough, it returns to the form, and the file is generated.
I tried putting in a status bar, which should show some basic information about the current record set, for every 5000 records.
After every
::sttSTatus:cText := sNthSql01_Records + " of " + sSql01_Records + ", " + sPersonId + ", " + sLastName + ", " + sFirstName
, I put in a
::frmAccountStatusList:Refresh()
, but the form still remains blank, even if you mouse click on it.
How do you get the form to remain visible, whenever it is activated?

How to avoid the Windows 'not responding' condition

Publicado: Vie Sep 21, 2012 7:23 pm
por orangesocks
Hi,
Use the function ProcessMessages() instead of ::frmAccountStatusList:Refresh(), which force the window to process all pending messages.
HTH
Giuseppe

How to avoid the Windows 'not responding' condition

Publicado: Vie Sep 21, 2012 9:58 pm
por Guest
That worked, thanks Giuseppe
orangesocks wrote on Fri, 21 September 2012 19:23Hi,
Use the function ProcessMessages() instead of ::frmAccountStatusList:Refresh(), which force the window to process all pending messages.
HTH
Giuseppe