Anti-virus frustration with Xojo IDE, and Libs (MBS, msvcr120 and msvcp120)

I’ve been stuck with this problem since last week and finally found out what happens, but have no idea how to fix it.
When we do a debug run with Xojo 2013r4.1 on Windows 7 64bit files get created by the IDE so that the project can be run.
These files normally get cleaned up at the end of the debug run by the IDE.
Unfortunately some of these files get locked and therefore can’t be removed, so the OS marks them as semi-deleted somehow. I mean they are still visible to the OS, but will be removed on the next reboot. When I say they are still there, I mean they are visible and locked, but you can’t do anything with them. You can’t delete them manually, you can’t take ownership, you can’t delete them with admin rights, you can’t shred them, you can’t do anything other than reboot.

You also can’t do another debug run, because the files are still there and blocking another run.

The only way I’ve found to work around this is to make a build script that puts these files readonly after the build step.
The IDE then won’t be able to delete them and you can then manually select them all in Windows Explorer and delete them.
You can’t automate this process because some of these files will still be locked and hence marked for deleting on reboot. Manually deleting them with explorer apparently doesn’t have this problem.

I found out that apparently Bitdefender’s vsserv.exe is locking some of the files in the Libs folder. I have no idea why only some of these files get flagged. I’m assuming that there is a difference between how these files end up in the libs folder. Einhugur’s plugins don’t seem to get flagged, but MBS plugins do. So do the files msvcp120.dll and msvcr120.ddl.

This is the directory before ending the debug run:
Map van C:\RBProject\RBMain\DebugBouwsoft\DebugBouwsoft Libs

08/01/2014 17:27 .
08/01/2014 17:27 …
08/01/2014 17:21 97.792 Appearance Pak.dll
08/01/2014 17:21 128.000 Browser Plugin.dll
08/01/2014 17:21 396.288 Crypto.dll
08/01/2014 17:21 143.872 EHStyleGrid9011.dll
08/01/2014 17:21 72.192 EHWindowSplitter8001.dll
08/01/2014 17:27 0 fulllist.txt
08/01/2014 17:21 14.336 Internet Encodings.dll
08/01/2014 17:21 85.112 MBS_Base64_Plugin_17852.dll
08/01/2014 17:21 82.552 MBS_Calc_Plugin_17852.dll
08/01/2014 17:21 87.160 MBS_Calls_Plugin_17852.dll
08/01/2014 17:21 2.081.912 MBS_ChartDirector5_Plugin_17852.dll
08/01/2014 17:21 86.136 MBS_E5_Plugin_17852.dll
08/01/2014 17:21 78.968 MBS_Folderitems_Plugin_17852.dll
08/01/2014 17:21 96.888 MBS_LargeStream_Plugin_17852.dll
08/01/2014 17:21 114.296 MBS_Main_Plugin_17852.dll
08/01/2014 17:21 111.736 MBS_Memory_Plugin_17852.dll
08/01/2014 17:21 92.792 MBS_Process_Plugin_17852.dll
08/01/2014 17:21 84.088 MBS_Registration_Plugin_17852.dll
08/01/2014 17:21 102.008 MBS_SystemInformation_Plugin_17852.dll
08/01/2014 17:21 166.520 MBS_Zip_Plugin_17852.dll
18/12/2013 01:46 455.328 msvcp120.dll
18/12/2013 01:46 970.912 msvcr120.dll
08/01/2014 17:21 1.212.416 PostgreSQLPlugin.dll
08/01/2014 17:21 1.844.736 RBGUIFramework.dll
08/01/2014 17:21 721.408 REALSQLDatabase.dll
08/01/2014 17:21 295.936 RegEx.dll
08/01/2014 17:21 29.184 Shell.dll
08/01/2014 17:21 5.301.760 SSCEPlugin.dll
08/01/2014 17:21 898.048 SSLSocket.dll
08/01/2014 17:21 289.792 XML.dll

This is the folder after the debug run.

Map van C:\RBProject\RBMain\DebugBouwsoft\DebugBouwsoft Libs

08/01/2014 17:28 .
08/01/2014 17:28 …
08/01/2014 17:21 85.112 MBS_Base64_Plugin_17852.dll
08/01/2014 17:21 82.552 MBS_Calc_Plugin_17852.dll
08/01/2014 17:21 87.160 MBS_Calls_Plugin_17852.dll
08/01/2014 17:21 2.081.912 MBS_ChartDirector5_Plugin_17852.dll
08/01/2014 17:21 86.136 MBS_E5_Plugin_17852.dll
08/01/2014 17:21 78.968 MBS_Folderitems_Plugin_17852.dll
08/01/2014 17:21 96.888 MBS_LargeStream_Plugin_17852.dll
08/01/2014 17:21 114.296 MBS_Main_Plugin_17852.dll
08/01/2014 17:21 111.736 MBS_Memory_Plugin_17852.dll
08/01/2014 17:21 92.792 MBS_Process_Plugin_17852.dll
08/01/2014 17:21 84.088 MBS_Registration_Plugin_17852.dll
08/01/2014 17:21 102.008 MBS_SystemInformation_Plugin_17852.dll
08/01/2014 17:21 166.520 MBS_Zip_Plugin_17852.dll
18/12/2013 01:46 455.328 msvcp120.dll
18/12/2013 01:46 970.912 msvcr120.dll

Somehow these files get flagged by vsserv.exe’s virus scan and hence these files get locked.

Does anyone know what the difference is between these files and the other ones? I would love to be able to debug without having to constantly manually delete files.

Thanks for any hints and advice.

Turn off heuristics in bitfender? It would seem this antivirus is working over time incorrectly giving false positives. I’d recommend another antivirus.

Well, an app writing dll files (Xojo) is often suspicious…

I turned off so much that windows complained I wasn’t running an AV, but the problem still occured. We only just bought our license for Bitdefender (for 13 people). We did check online for advice on what AV to buy and Bitdefender had good reviews. Our previous solution was Kaspersky, but that also gave problems. Needless to say I also opened a ticket with Bitdefender support, but I’m not holding my breath there.

There seems to be a difference between the way some of these files get installed. Like I said, only some get locked by bitdefender, so what is the difference between how they get installed and the ones that don’t get locked. I don’t know how Xojo handles its plugins, so that’s why I"m asking it here.

Yes, but apparently the Einhugur stuff extracts without causing a lock. Any idea what could be different?

PS: even a simple test project with just a window that doesn’t do anything causes it to happen. The two files that then get locked are msvcp120.dll and msvcr120,dll. So it’s not just 3d party plugins.

Well, my plugins are signed, so they should be more trustful.

Yes, I noticed that :slight_smile: