Delay when applying changes on syntax color |
Post Reply |
Author | |
smoreno
Newbie Joined: 21 January 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 06 February 2009 at 8:23am |
Product: Xtreme SyntaxEdit (ActiveX) version 12.1.1
Platform: Windows Vista (64bit) - SP 1 Language: C++ Hello, I have purchased the ActiveX SyntaxEdit and after insert it in my application I have found the following problem: If I modify my custom schema in order to change the color of the text or another feature, there is a delay of about 20-30 seconds to update the changes in the editor. What I do is modifying the schema then saving the modifications and going to my application to see the changes. I have noted that in the demo application it works better and this delay is fewer (about 2 seconds). I have found the function: Public Sub RefreshColors(). Remarks: Refreshing colors causes the syntax editor to re-read configuration files and re-parse the current document. That is what I need but it seems to doesn't work. Thank you in advance. |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I think that this delay related to FileMonitor and Thread used to catch ini and scheme files modifications and notify app to update syntax and colors. It take time and difficult to predict run-time.
I make version without FileMonitor and direct call onupdate with hint = xtpEditHintInitView to reload config and immediatly see result. I think it will be faster. It will allow to stop app faster as we don't need to wait for thread.
I am not sure that Refresh colors in Activex version do all needed job. Will check later. But under new mode you don't need to use it.
I also see client's claim about long time to close app (Issue # 20738)
|
|
smoreno
Newbie Joined: 21 January 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thank you very much for your help. I will try.
Greetings! |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Get recent pre-release - it also have some serious fixes e.g. in Intellisense.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |