DCRTF very slow while closing
DCRTF very slow while closing
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
Re: DCRTF very slow while closing
two thoughts..
the program might be doing garbage collection..
do you have real-time anti-virus active in the directory of the rtf file ?
the program might be doing garbage collection..
do you have real-time anti-virus active in the directory of the rtf file ?
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: DCRTF very slow while closing
Garbage collection could be but always at the same spot?
I have AVG antivirus now but also Microsoft essentials has the problem.
I do not think the antivirus is the problem because on other machines I have the same problem.
I have AVG antivirus now but also Microsoft essentials has the problem.
I do not think the antivirus is the problem because on other machines I have the same problem.
Re: DCRTF very slow while closing
hi,
did same happens with RFT when using WordPad.EXE ?
did you tray c:\ALASKA\XPPW32\Source\samples\activex\editor\rtf.prg
did same happens with RFT when using WordPad.EXE ?
did you tray c:\ALASKA\XPPW32\Source\samples\activex\editor\rtf.prg
greetings by OHR
Jimmy
Jimmy
Re: DCRTF very slow while closing
With Wordpad.exe no problems with loading and closing.
With rtf.prg (editor.exe) the rtf-file loads quickly in the window but after that the program does not react for 18 seconds. Closing the exe is fast.
With rtf.prg (editor.exe) the rtf-file loads quickly in the window but after that the program does not react for 18 seconds. Closing the exe is fast.
Re: DCRTF very slow while closing
sounds like xbase++ is processing the rtf contents for that 18 seconds..jjelders wrote:With Wordpad.exe no problems with loading and closing.
With rtf.prg (editor.exe) the rtf-file loads quickly in the window but after that the program does not react for 18 seconds. Closing the exe is fast.
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises
Re: DCRTF very slow while closing
Send me your application code with your RTF file.
I will see what I can do.
I will see what I can do.
The eXpress train is coming - and it has more cars.
Re: DCRTF very slow while closing
Hi Roger,
Included you will find a zipfile with the program, the rtf-file and some athert data to run it.
Thanks in advance
Hans Jelders
Included you will find a zipfile with the program, the rtf-file and some athert data to run it.
Thanks in advance
Hans Jelders
- Attachments
-
- zwfb.zip
- (639.51 KiB) Downloaded 679 times
Re: DCRTF very slow while closing
I don't understand what your program is supposed to do.
You didn't include the source code.
When I run zwfb.exe, it opens an EXCEL file.
What does this have to do with your RTF problem?
You didn't include the source code.
When I run zwfb.exe, it opens an EXCEL file.
What does this have to do with your RTF problem?
The eXpress train is coming - and it has more cars.
Re: DCRTF very slow while closing
A short time ago I replied to your message.
I do not see it in the forum.
So I sent the prg once again but now in zip format.
I do not see it in the forum.
So I sent the prg once again but now in zip format.
- Attachments
-
- main (2).zip
- (4.05 KiB) Downloaded 702 times