Category Asynchronous mode, Object ProAsynchronous

Function ProAsynchronousEventLoop


Description
Initiates an event loop which will call ProEventProcess periodically(1sec) to handle events returned from Creo Parametric. Applicable only for full asynchronous applications which are not supposed to carry out any tasks while waiting for Creo Parametric events.

IMPORTANT NOTE: This function will not return until interrupted by ProAsynchronousEventLoopInterrupt() or an error returns from ProEngineerStatusGet(). No separate application processing is possible until that time, except within Creo Parametric event callbacks.

Synopsis
#include <ProCore.h>
ProErrorProAsynchronousEventLoop(void)
Returns
PRO_TK_USER_ABORTThe function was interrupted by ProAsynchronousEventLoopInterrupt().
Any other valueProEngineerStatusGet() returned this error.

Manual References:

  1. Core: Asynchronous Mode: Full Asynchronous Mode
  2. Core: Asynchronous Mode: Full Asynchronous Mode

Sample Code References:

  1. pt_async ( TestAsync.c )