DCRTF very slow while closing
Posted: Thu Nov 07, 2013 4:24 pm
In the function below I show a helpscreen from a rtf-file.
The rtf-file has a size of about 10mb because there are screendumps in it.
The function opens the rtf in a short time but when I close the screen it takes about 20 seconds before my application reacts again. After closing the screen the cpu usage rises to about 80%.
Somebody knows why this happens?
FUNCTION Displayhelp()
**********************
*Laat help-scherm zien
LOCAL GetList:={}, GetOptions, cMemo, oRTF:=NIL
cMemo:=MemoRead('help.rtf')
@ 0,0 DCRTF OBJECT oRTF SIZE 100,30 VAR cMemo ;
SCROLLBARS XBP_SCROLLBAR_HORIZ + XBP_SCROLLBAR_VERT ;
APPEARANCE XBP_APPEARANCE_3D ;
RESIZE DCGUI_RESIZE_RESIZEONLY
DCGETOPTIONS RESIZE
DCREAD GUI FIT TITLE "Helpinformatie" OPTIONS GetOptions
RETURN NIL
The rtf-file has a size of about 10mb because there are screendumps in it.
The function opens the rtf in a short time but when I close the screen it takes about 20 seconds before my application reacts again. After closing the screen the cpu usage rises to about 80%.
Somebody knows why this happens?
FUNCTION Displayhelp()
**********************
*Laat help-scherm zien
LOCAL GetList:={}, GetOptions, cMemo, oRTF:=NIL
cMemo:=MemoRead('help.rtf')
@ 0,0 DCRTF OBJECT oRTF SIZE 100,30 VAR cMemo ;
SCROLLBARS XBP_SCROLLBAR_HORIZ + XBP_SCROLLBAR_VERT ;
APPEARANCE XBP_APPEARANCE_3D ;
RESIZE DCGUI_RESIZE_RESIZEONLY
DCGETOPTIONS RESIZE
DCREAD GUI FIT TITLE "Helpinformatie" OPTIONS GetOptions
RETURN NIL