Interface is frozen when loading a big file

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

It because of that at RichView is called two times Forrmat. For the first time in RefreshData, the second time at RVAction on file opening.
AutoCorect
Posts: 84
Joined: Sun Dec 16, 2007 7:15 pm

Post by AutoCorect »

In my program I don't use RVAction on file opening. And if I call Format it takes about 9..10% from total time.
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

If you do not use RVAction then after file loading (or after Format):
1) call calculatePageCount
2) delete RefreshData
AutoCorect
Posts: 84
Joined: Sun Dec 16, 2007 7:15 pm

Post by AutoCorect »

I tried this but it gives that error (only one page to edit when I load the second time).
With RefreshData is ok but not that fast.
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d »

Send me your code on file loading.
AutoCorect
Posts: 84
Joined: Sun Dec 16, 2007 7:15 pm

Post by AutoCorect »

Unfortunatelly my application is very complex.
I have a function that finds what kind of file it is and load it in ScaleRichView but it's also very complex and uses many other functions.
Also it's not easy for me to make a new program with a simpler version of this function.

I will send you the function by email.
Post Reply