You should exclude your program from AVG scanning. You can see how to do this here
Open the AVG program.
Double-click the Resident Shield component.
Click the Manage exceptions button.
In the newly opened dialog, please click either the Add Path or the Add File button to add the needed exception.
- Click OK to confirm the changes.