I need to fix an issue for a service protocol. The protocol starts with collecting all the profile definitions, instances, ... and stores them in a drop down menu + table. However at the restart of Dataminer, the drop down menu + table remains empty. Personally, I think is caused by a race condition: Dataminer starts the protocol before the profile definitions are (fully) loaded/available. The profile definitions are collected via the ProfileHelper
[Questions]
- Do you think that mine thought/statement is correct? Or is that Dataminer wise impossible. (I didn't find information of the process restart order.)
- If mine statement is correct, do you know how I can check if the profiles are available.
Thanks in advance!
Looks like you're running into a race condition indeed. As far as I'm aware the Resource Manager has a call to check if the it's fully loaded, but I'd need to investigate if it's available on the Profile Helper.
the Resource Manager does have an IsInitialized method, but couldn’t find it on the Profile Helper.