Copyright © 2006-2019 MultiMedia Soft

UseThreadsInSyncMode method

Previous pageReturn to chapter overviewNext page

Remarks

 

Establishes if lengthy operations, for example loading and exporting sessions, are performed in synchronous or asynchronous mode respect to the code of the container application.

 

For further information refer to the How to synchronize the container application with the control tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function UseThreadsInSyncMode (

bUseThreadsInSyncMode as bool

) as enumErrorCodes


 

[C#]

public enumErrorCodes UseThreadsInSyncMode (

bool bUseThreadsInSyncMode

);


 

[C++]

public: enumErrorCodes UseThreadsInSyncMode (

bool bUseThreadsInSyncMode

);


 

 

Parameter

Description

 

 

bUseThreadsInSyncMode

Boolean value that specifies if lengthy operations must be performed in synchronous or asynchronous mode respect to the container application code.

Supported values are the following:

Value

Meaning

false (default)

Lengthy operations are performed in asynchronous mode, meaning that each operation starts the secondary thread and immediately returns control to the application's code.

true

Lengthy operations are performed in synchronous mode, meaning that each operation starts the secondary thread and doesn't return control to the application's code until the secondary thread completes its tasks and closes.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred. Check the LastError property value in order to see the last error.

enumErrorCodes.ERR_NOERROR (0)

The method call was successful.