Need help!!!!!!!

I have a problem whenever i try to go into the My computer icon the screen goes blank then starts back up. I’ve been told that a virus has got into my registry.
How do i fix this problem?

Make sure your system is fully up to date and do the same for Avast.
To fully help you, we need more info about your operating system.