Linking to an OOP Object |
|
Linkage to a COM object can be managed/controlled through the use of a PxPlus object using Data Integration functionality.
ON EVENT FROM com_id PROCESS oop_id
Where:
com_id |
Numeric CTL value of a Windows COM object. |
oop_id |
Numeric identifier of an OOP object. |
Support for events from a COM object is limited to a single PxPlus OOP object, whereas a single PxPlus OOP object is capable of supporting events from multiple COM objects. In other words, the relationship from a COM object to an OOP object is "one-to-one", while the relationship from OOP object to COM object(s) can be "one-to-many".
If PxPlus receives an event while processing another event, it will suspend the first event, process the second entirely, then resume the first event before returning to the main task. With this in mind, it is possible for a PxPlus task to become overloaded with event requests; therefore, a limit of 64 outstanding event requests has been imposed. PxPlus ignores subsequent event requests when there are 64 active requests being processed. Regular processing continues once the number of outstanding requests drops below 64.
Generally speaking, files can be shared between currently running tasks and event handlers. However, it is possible for an event to interrupt a task when it is part way through the execution of a file I/O directive or function. Under these circumstances, the file will not be available to the code associated with the event, and the (new message) Error #89: File access denied -- I/O operation pending will be reported.
|
|
|
|
|
|
|
|
|