Copyright © 2008-2018 MultiMedia Soft

UseThreadsInSyncMode method

Previous pageReturn to chapter overviewNext page

Remarks

 

Establishes if lengthy operations, for example loading, editing 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]

control.UseThreadsInSyncMode (

bUseThreadsInSyncMode as enumBoolean

) as enumErrorCodes


 

[C++]

short control.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:

Mnemonic constant

Value

Meaning

BOOL_FALSE (default)

0

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

BOOL_TRUE

1

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.