Following on from this issue https://forums.ni.com/t5/DQMH-Consortium-Toolkits/DQMH-Cloneable-Module-Launching-Issue/m-p/4482052
Currently DQMH will let you launch multiple instances of a clonable module with the same module ID. This condition happens if the VI that launched the 1st clone goes idle before the 2nd clone is launched. It is easy to replicate this by directly running "Start Module.vi" twice. Both runs will return a module ID of 1 but two clones of Main.vi will be running that each think they have id 1.
DQMH does not handle this cleanly: among many other symptoms the 1st clone is no longer reachable by any public request VIs because its user events were replaced in the module's globals.
This should be changed so either:
1. The module ID lifetime is tied to the clone lifetimes (so running "Start Module.vi" twice produces a module ID of 1 and then 2)
or
2. This condition should be caught before launching a clone with a duplicate ID and an error should be returned from "Start Module.vi"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.