Inner fundamentals

Top  Previous  Next

 

When using the tetra_engine.dll, there is one restriction: Only one project can be active in an application. To activate a component means, that the project which is connected to it, is compiled and then is ready for execution. It is possible to use components with different projects in an application, the appropriate instance of a component has to be activated, however, before a text can be transformed by it. To activate the component, it suffices to call the Execute method for the component. To make sure that the execution of the transformation doesn't fail because of the activation of the component, the steps for the activation of a component can be executed one by one already before the use, too: LoadEngine -> LoadProject -> CompileProject -> SetActive -> Execute

 

 

State

Dll

Project

Source text

Target text

new

not loaded

not loaded

new

empty

dll loaded

loaded

not loaded

new

empty

active

loaded

loaded and compiled

new

empty

executed

loaded

loaded and compiled

old

new

changed source text

loaded

loaded and compiled

new

old

 

With an instance which is already active, arbitrarily many texts can be transformed without time delay. If a second instance uses the same project as the active instance, then too, no new compiling is required for its activation.

If the project is changed, then the component is again in the state: dll loaded.



This page belongs to the TetraComponents Documentation

Home  Content  German