Antivirus hangs on DLL check

Hello, I’m trying to solve such a problem: antivirus scan hangs (for about 2-3 minutes) when it try to check one DLL-file (a specialized library from ERP-system). I can add it to whitelist, but that works only for local computer. Whitelisting over an SMB-share doesn’t work - scan hangs and ERP-system fails to launch. I’ve tried connect share as network disk but have got the same problem.
How can I solve the issue? (Comodo AV v. 5.5.195786.1383)