25.3   Tips and Tricks

25.3.1   Troubleshooting

25.3.2   Loading and Unloading Procedures

To ensure that programs developed with HDevelop can be executed with HDevEngine without any further action, all standard procedures (see the HDevelop User's Guide) are automatically loaded when HDevEngine is started.

In most applications there is no need to delete loaded HDevelop procedures explicitly using UnloadProcedure. A reason might be to free memory.

Please note that when creating a procedure with the class HDevProcedure, the procedure is loaded together with all the procedures it uses. In contrast, UnloadProcedure deletes only the specified procedure. To delete the automatically loaded procedures, you can query their names using GetLoadedProcedureNames and then delete them (if you are sure that they are not used by another loaded procedure!), or you can use UnloadAllProcedures to unload all external procedures. Note that after calling UnloadProcedure or UnloadAllProcedures, GetProcedureNames still returns the names of the unloaded procedures.