in my DLL in need to do some synchronizing with the current EA thread.
Do you know if one can block the current EA thread with C#?
Create the necessary lock/unlock function in a dll. and let the EA call that external functions when you want it to block.
Beware that there are several threads in an EA, one for each event handler.