SPDMainLoop

Purpose

Enter an infinite event loop to process SPD events. The function never returns unless there is an error.

Syntax

#using Spo.SPDlib
SPD_errorType SPDMainLoop (void);

Description

This function enters an infinite event loop and processes all SPD events in the event queue.

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.

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: