3.3.3.0.1 Message loop

LuaCOM

next up previous contents Next: 3.3.4 Parameter Passing Up: 3.3.3 Connection Points: handling Previous: 3.3.3 Connection Points: handling   Contents

3.3.3.0.1 Message loop

To receive events, it is necessary to have a message loop in the thread that owns the object that is receiving the events. All events are dispatched through a Windows message queue created during COM initialization. Without a message loop, the event objects implemented by LuaCOM , will never receive method calls from the COM objects they are registered with. Out-of-process COM servers implemented with LuaCOM also need a message loop to be able to service method calls (one is provided by calling luacom.DetectAutomation).



Fabio Mascarenhas de Queiroz 2005-01-07