Posted 9 years ago by Nassim Farhat
Version: 12.1.0300



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? 



Comments (7)

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

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 9 years ago by Nassim Farhat

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



Posted 9 years ago by Marien Monnier


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:


But nothing seems to indicate this change.

Thank you,

[Modified 9 years ago]

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

Hello, I believe it was added in build 287.

Actipro Software Support

Posted 9 years ago by Marien Monnier

Works like a charm!

Thank you

Posted 8 years ago by Jessie Caldwell

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 8 years ago by Actipro Software Support - Cleveland, OH, USA

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 (v2020.1 build 0403) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.