Posted 12 years ago by Nassim Farhat
Version: 12.1.0300
Avatar

Hello,

 

We have designed a modules that requires us to load many SytaxEditor in 1 window... up to 20 or more causes huge lags in the load time. Using a profiling tool, I have discovered that the long load time is caused by the call to:

ActiproSoftware.Products.ActiproLicenseProvider.GetLicenseInfoFromAssemblyContext(LicenseContext, Type, Object, Int32, String&, String&, ActiproLicenseSourceLocation&)

How to I avoid constantly quering the licensing info? 

Maybe there's a way to bind the licensing info to a static field that will only query the licensing info for the 1st opening syntaxEditor instance, making new calls to other new syntaxEditors should be quick and efficient wihtout the need to query again the licensing info since it would be obtained directly from the saved field? 

Regards

Nassim

Comments (7)

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Nassim,

Assuming this is for SyntaxEditor v4.0 (you indicated 2012.1 in the post but I think your company is using v4.0 right now), there is a ActiproSoftware.Products.ActiproLicenseProvider.AddHintAssemblyName(assemblyName) method you can call.  You basically call that with the full name of the assembly in which your SyntaxEditor's license info is stored.  In other words, the assembly that has the licenses.licx file entry in it.

That will tell SyntaxEditor to check that assembly first when looking for license data and should help speed things up.


Actipro Software Support

Posted 12 years ago by Nassim Farhat
Avatar

Thank you so much.... you guys have the best product and support team. That fixed my issue in a blink of an eye.

Reagards

Nassim

Posted 12 years ago by Marien Monnier
Avatar

Hi,

Sorry to "up" this thread, but I face the same problem, and I was wondering in which version the AddHintAssemblyName method was added.

I currently use the v4.0.283.0, but this method doesn't seem to exist.

I tried to look at your Announcements:

v4.0.284: http://www.actiprosoftware.com/community/thread/4645/syntaxeditor-for-winforms-400284-maintenance#17142 
v4.0.285: http://www.actiprosoftware.com/community/thread/5015/syntaxeditor-for-winforms-400285-maintenance#18399 
v4.0.288: http://www.actiprosoftware.com/community/thread/5496/syntaxeditor-for-winforms-400288-maintenance#20152 
v4.0.289: http://www.actiprosoftware.com/community/thread/5815/syntaxeditor-for-winforms-400289-maintenance#21298 
v4.0.290: http://www.actiprosoftware.com/community/thread/6284/syntaxeditor-for-winforms-400290-maintenance  


But nothing seems to indicate this change.

Thank you,

[Modified 12 years ago]

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, I believe it was added in build 287.


Actipro Software Support

Posted 12 years ago by Marien Monnier
Avatar

Works like a charm!

Thank you

Posted 12 years ago by Jessie Caldwell
Avatar

We are having a similar problem. The syntax editor is noticeably slower to display in comparison to a plain textbox. Issue seems to be most apparent on the first load.

We are using version v12.1.0562.

Adding the hintpath doesn't appear to have made it any quicker. 

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jessie,

If it's first load only then it could just be .NET loading the assemblies for the first time, or it could be licensing.  But if you already did the hint path trick, then that rules out the licensing.  So it's likely just the assemblies being loaded and there's nothing we can really do about that.  It should just delay a second or so though, if that.


Actipro Software Support

The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.