LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Event Engine - Provide a unique "Instance GUID" to prevent infinite Event Exchange loops #119

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

At present, the DLL module (issue #118) implementation allows for the possibility (almost a certainty, really) of Events being infinitely passed between the Host Application and one or more of its registered DLL modules.

This is because the solution does not (currently) check to determine whether the origin of the Event is the same as the prospective destination.

By implementing an auto-generated GUID in the Event Engine itself, and assigning that GUID to each Event instance, we can add a simple check to ensure that the Event is never passed back to its origin.

Fairly easy to implement.

LaKraven commented 9 years ago

Completed in 74dec84