Thanks for answering, Christian.

I'm not sure to understand.
Do you mean that a #Pragma DisableBackGroundTask will avoid a new 
WindowsDiskChangeMBS.DriveAdded to fire, until the end of the running 
code or until #Pragma BackgroundTasks True? I don't yield time to other 
tasks in the DriveAdded event.

Jean-Luc Arnaud

Le 24/02/2017 à 16:15, Christian Schmitz a écrit :
>> I mean, let say a first WindowsDiskChangeMBS.DriveAdded event fires.
>> DriveAdded event executes its code.
>> It seems like if a second WindowsDiskChangeMBS.DriveAdded event fires
>> before the code of the previous is finished, this first code is
>> interrupted and DriveAdded event code starts for the second event.
> Please don’t do thing which yield time to to other threads.
>
> e.g. use the pragma to disable background tasks.
>
> Sincerely
> Christian
>


_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
mbsplugins@monkeybreadsoftware.info
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to