I'm writing a script engine system consisting of a virtual machine (or finite state machine) component, a compiler(s) component and a "security" component (that is an anti-virus component to scan scripts). All of these components need to use functions and procedures from two (or more) other "service units". One of the service units need to be only one instance in the application that uses the script component(s), that is the virtual machine component and the compiler component (possibly also the security comp.) need to access and distribute variable data between each other.
Obviously I need to make each component a package, or maybe put all the components in one package (I'm new packages, though), otherwise I get an error saying that my used unit are implicitly imported. ...And by the way, as I was working on adding a control creation code in one of the service units, Delphi now displays a "... property <property> does not exist ..." error each time I load or run the program project testing my components. I have no clue what caused the property error - the respective properties involved does exist, and they worked fine before.
One more thing... Is it possible to have several components in one package, and if so if I add my service units to the contains clause of that package, would the service units be shareable between the components in such a sense that variable data may be distributed from one component to the other?
I really need help on this, my entire script engine project depends on this...I don't want to put all the source code lines (currently about 3000) in one unit, since a single unit solution only wastes disk and RAM space in many cases, and it would be pretty awkward to have to edit such a unit...
Thanks in advance,
-Steinar
Obviously I need to make each component a package, or maybe put all the components in one package (I'm new packages, though), otherwise I get an error saying that my used unit are implicitly imported. ...And by the way, as I was working on adding a control creation code in one of the service units, Delphi now displays a "... property <property> does not exist ..." error each time I load or run the program project testing my components. I have no clue what caused the property error - the respective properties involved does exist, and they worked fine before.
One more thing... Is it possible to have several components in one package, and if so if I add my service units to the contains clause of that package, would the service units be shareable between the components in such a sense that variable data may be distributed from one component to the other?
I really need help on this, my entire script engine project depends on this...I don't want to put all the source code lines (currently about 3000) in one unit, since a single unit solution only wastes disk and RAM space in many cases, and it would be pretty awkward to have to edit such a unit...
Thanks in advance,
-Steinar