[Incident]: Some users report they are unable to access the case portal. Please see this community notice for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make sure application stops working when dongle is removed from a machine .

How to make sure application stops working when dongle is removed from a machine .

After reconnection attempts fails, the client tries to exit the application. The default behavior in Windows will be Pop-up dialog box with update about the error. The application will exit once the dialog box is closed.
In case, you want to change the exit behavior, you can write your own callback under the attribute:

(void)lc_set_attr(lm_job, LM_A_USER_EXITCALL_EX, (LM_A_VAL_TYPE)quit);

 

The callback can be written as

static int quit(LM_HANDLE* lm_job,char* feat, void* itr)
{
printf("LM_A_USER_EXITCALL_EX is called for %s \n", feat); exit(0);
}
Labels (2)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Oct 06, 2022 04:16 AM
Updated by:
Contributors