Purpose
Enter an event loop and process all outstanding SPD events. Once all events have been processed, this function returns to the caller. Use of this function allows you to merge the SPD event loop with a Windows event loop.
Syntax
#using Spo.SPDlib SPD_errorType SPDProcessEvent(void);
Description
This function enters the event loop and processes all pending SPD events in the event queue. The function will return once all pending events have been processed.
The function allows a client program to simulate single-thread processing of SPD events. It is “simulated” because all event callbacks behind the scene are still handled multi-thread because of the .NET architecture.
All events are put onto an event queue pending processing. When the function is called, each event is then passed to the client thread for processing.
Return Value
The return value indicates whether an error occurred, as follows.
Return | Indication |
SPD_normal | No error |
SPD_notInitialized | SPDInitClient not called previously |
SPD_errException | A .NET runtime exception occurs |
See Also
See also the following client functions:
SPDMainLoop (see Section [xref text to replace])