MACRO NOT RESPONDING

Hi everyone

i have a macro to consolidate my parts in SQL Database , when i restart my computer the macro works (After some times ) but if i did not restart my PC,  the macro and SW stay without response for a long time , until i decide to force SW closing

Someone can help if he face such a situation before ?

Best regards

SolidworksApi/macros