problem in using stream class and multi Language feature

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by Zahra Akbari
Avatar
I would like to use Stream class for reading Definition Language file . in Xml file , MultiLanguage have been used . but at runTime this error ccurred :

"An unhandled exception of type 'ActiproSoftware.SyntaxEditor.InvalidLanguageDefinitionException' occurred in actiprosoftware.syntaxeditor.net11.dll

Additional information: An error occurred while loading the SyntaxLanguage 'XML':
Languages loaded from non-file streams cannot have child languages since the deserializer does not know where to search for them."

please help me .

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Right, since your language is referencing another file, there isn't a way to get to the file from a Stream perspective. Therefore you can do this... load the root language in our sample project. Then use the save language feature on the Language menu to save it out to a file. That will generate a single file that contains all your merged languages. You can then use that in your stream just fine.


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.