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 » Fri Aug 29, 2008 12:22 pm

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 » Fri Aug 29, 2008 12:37 pm

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 » Fri Aug 29, 2008 1:19 pm

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 » Fri Aug 29, 2008 1:25 pm

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 » Tue Sep 02, 2008 8:41 pm

Send me your code on file loading.

AutoCorect
Posts: 84
Joined: Sun Dec 16, 2007 7:15 pm

Post by AutoCorect » Thu Sep 04, 2008 2:18 pm

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