Placing Code in the Initialize and Activate Events

Large amounts of code in the Initialize and Activate events will impact when you can first interact with the picture when it is opened. For example, a picture with a button on it may open almost immediately, and you can click on that button, but you will not be able to trigger any event tied to that button until all the scripts in the Initialize and Activate events have run to completion.

Also, avoid adding tags to the DataSystem OCX in the picture initialize. Move this action to the FixGlobals_Initialize event of the User Project, design it to load the tags on demand, or initialize it in a global script.

See Also

Initialize Event

Activate Event