DCRTF very slow while closing

This forum is for eXpress++ general support.
Message
Author
jjelders
Posts: 9
Joined: Sun Jul 25, 2010 3:04 pm

DCRTF very slow while closing

#1 Post by jjelders »

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

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: DCRTF very slow while closing

#2 Post by bwolfsohn »

two thoughts..

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

jjelders
Posts: 9
Joined: Sun Jul 25, 2010 3:04 pm

Re: DCRTF very slow while closing

#3 Post by jjelders »

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.

User avatar
Auge_Ohr
Posts: 1422
Joined: Wed Feb 24, 2010 3:44 pm

Re: DCRTF very slow while closing

#4 Post by Auge_Ohr »

hi,

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

jjelders
Posts: 9
Joined: Sun Jul 25, 2010 3:04 pm

Re: DCRTF very slow while closing

#5 Post by jjelders »

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.

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: DCRTF very slow while closing

#6 Post by bwolfsohn »

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.
sounds like xbase++ is processing the rtf contents for that 18 seconds..
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

User avatar
rdonnay
Site Admin
Posts: 4775
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCRTF very slow while closing

#7 Post by rdonnay »

Send me your application code with your RTF file.

I will see what I can do.
The eXpress train is coming - and it has more cars.

jjelders
Posts: 9
Joined: Sun Jul 25, 2010 3:04 pm

Re: DCRTF very slow while closing

#8 Post by jjelders »

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
Attachments
zwfb.zip
(639.51 KiB) Downloaded 680 times

User avatar
rdonnay
Site Admin
Posts: 4775
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCRTF very slow while closing

#9 Post by rdonnay »

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?
The eXpress train is coming - and it has more cars.

jjelders
Posts: 9
Joined: Sun Jul 25, 2010 3:04 pm

Re: DCRTF very slow while closing

#10 Post by jjelders »

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.
Attachments
main (2).zip
(4.05 KiB) Downloaded 702 times

Post Reply