Is BroadcastSystemMessage necessary ? #1186
-
Hello, the call to BroadcastSystemMessage after mounting the drive takes between 5 and 30 seconds on some systems. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
The mount is already broadcast by the library on mount and unmount. Line 508 in 036fc02 Could it be due to #528 ? |
Beta Was this translation helpful? Give feedback.
-
Hi Liryna, it's exactly the call to BroadcastSystemMessage from DokanBroadcastLink, that is taking such a large amount of time (on some, but unfortunately many, machines). So I was wondering what is going to happen if I simply remove the BroadcastSystemMessage call. Regards, |
Beta Was this translation helpful? Give feedback.
-
If we don't call It is sadly "expected" that |
Beta Was this translation helpful? Give feedback.
-
Hm, yes, you're absolutely right, that would be the perfect solution. |
Beta Was this translation helpful? Give feedback.
-
I just tried it completely without the BroadcastSystemMessage, and couldn't find any problem so far. Okay, we mount a network drive for current session, maybe it makes a difference if mounting a local disk device globally. |
Beta Was this translation helpful? Give feedback.
-
Hi Liryna, our customer confirms, that the delay does not happen anymore with that version. Regards, |
Beta Was this translation helpful? Give feedback.
If we don't call
BroadcastSystemMessage
, explorer or other app are not going to reflect the mount / unmount in their UI or else.It is sadly "expected" that
BroadcastSystemMessage
hangs due to external apps. What we should do here is starting a thread and execute this call separately to the mount thread.