Handling changed addon strings

Updated: April 19, 2023

The AoUngetStrings() function returns an error code to inform the caller that the addon strings have changed. This happens when the addon's DLL was replaced with a newer version after the caller obtained its copy of the strings through AoGetStrings(), and this newer version has different strings.

In this case, the calling thread has been using a stale copy of the strings. Depending on your application logic, this might not be a problem and you can safely ignore this case. But if updates to addon strings could affect your application's behavior, then the thread that noticed the erroneous return code for AoUngetStrings() should call AoGetStrings() again to get access to an up-to-date copy of those strings, read them to see what's changed, and perform any suitable follow-up actions.