Posted 11 years ago by fd1326
Avatar
Hi.
I'm trying SyntaxEditor and have noticed an issue with creating first instance of it.
First call to "new SyntaxEditor();" is much slower than all subsequent calls to it.
Does it initialize some shared objects or smth like this at first call? Can it be avoided or moved to a separate thread?

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
That is just .NET loading the assemblies for the first time since it loads them the first time you reference a class in an assembly. So when you first reference SyntaxEditor, it's probably loading the Shared, Text, and SyntaxEditor assemblies.

Some people may load these at app startup instead while a splash screen is open. You could do it by simply referencing SyntaxEditor during your app startup code.


Actipro Software Support

The latest build of this product (v21.1.1) 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.