the sample below puts the CPU at 100% with FWH 27 (March 06) - xH 0.99.60 - Bcc 5.5
The time consuming process is not "oPrn:Say()", but "PAGE/ENDPAGE"
Does this happens with latest FWH also ?
How can this be solved ?
Thanks,
Davide
- Code: Select all Expand view RUN
#include "Fivewin.ch"
function Main() // Test 100% CPU
Local oPrn,i
PRINT oPrn NAME "Test" FROM USER PREVIEW
if Empty( oPrn:hDC ) ; return nil ; endif
For i := 1 to 5000
SysRefresh() // This does not help
PAGE
oPrn:Say( 100, 100, Str(i) )
ENDPAGE
Next i
ENDPRINT
Return nil