GUI freeze problem

Hello everybody,


My plugin(addin) is developped in C#, I register my main functionto the notification : RenderLayer0Notify (from ModelView). ThisMain function use methods like : RotateAboutCenter, RollBy,ZoomByFactor. But using these methods seems to "freeze" the GUI ofSolidworks. For example I can't resize the SolidWorks window orclick on some dialog's buttons like "OK" or "Cancel".

Do you have an idea of the problem? Why the GUI freeze?
Can someone tell me what is the right thing to not block theGraphical Interface of Solidworks?


Thanks!
SolidworksApi macros