09-08-2022 02:12 PM
Let me start off by saying that i am new to DQMH and do not fully understand it completely. I have 3 cloneable modules (Test Panel, Settings Panel, Logging panel) that all talk to each other and 1 server module that talks to 1 of the cloneable modules (test panel).
So the way that I have it now is:
Server opens up a new test panel that starts the Logging Module and the Settings module and registers for the events..
The problem that I am having is that the settings module broadcast an event called "Settings Updated" . I have registered that event in the "Logging Module" so that the settings can be updated.
However when that event is fired from the settings panel, the event is not triggered in the logging module or it gets triggered sometimes and others it don't. I have verified this as a whole system and by just using the tester api for each module. The settings panel and the Logging panel communication seems to get messed up somehow. I am sure it is something simple but I am still learning this pattern. attached is a source distribution of the code for you all to look at.
Solved! Go to Solution.
09-08-2022 03:27 PM
Hi Joe,
One problem I see is that the "Logger" registers for the broadcasts from "Settings" before settings is running, so I don't think these will be valid events.
Also, I don't see where the Logger ID is shared to "Settings", so I think the "NewSettingsUpdate" event will always be addressed to Logging Module = 0.
09-08-2022 03:45 PM
Thats kind of what I was thinking. I reversed the order and put a dependency in for the settings panel to start first and it seems to work better.