Lex Activator CheckReleaseUpdate Multiple Apps

Hi,
I’ve been trying to figure out a way to check for product updates for multiple applications.
It seems like when I pass userdata to my ReleaseUpdateCallback, it will set the release in my userdata fine the first time, but the next application will just overwrite the userdata I had sent in initially.

I’ve made sure that I wasn’t accidentally sending in the same userdata myself, but I have check the ids of the objects before sending into the ReleaseUpdateCallback function and from within the function. It seems like whatever the initial arguments passed ot the ReleaseUpdateCallback function were the first time it was used, they will be used from that point forward. Is this intended or am I missing something?

If it means anything I am currently using the 3.32.3 Java build.

Hi @trathbun,

Thank you for reaching out!

When you call CheckReleaseUpdate(), the function captures the userData you provide. When the callback is invoked, it receives the exact same userData that was passed to the function.

Each call to CheckReleaseUpdate() is independent - it captures the userData that is passed to it.

For multiple applications, simply ensure you pass the correct userData for each application. If userData points to static/global data, it could lead to the behavior you are observing.