Page 1 of 1
avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 9:12 am
by sartic
I was developing one app for win32 and then suddenly avast complains it is win32 buzus aem trojan.
Same source was ok until I wrote few lines more of code.
Same source whidth threadsafe on and avast say everything ok?!
Re: avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 9:32 am
by ts-soft
Ignore the false positive or upload it to avast
Re: avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 11:29 am
by IdeasVacuum
...Don't ignore it, upload it to Avast as a False Positive.
Re: avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 11:30 am
by rsts
Don't post anti-virus problems as PB Bugs
cheers
Re: avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 1:11 pm
by ts-soft
IdeasVacuum wrote:...Don't ignore it, upload it to Avast as a False Positive.
Mostly this doesn't help, you become a e-mail, is fixed with the next virusdefinition and nothing has changed

, the false positive is still alive
Re: avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 1:23 pm
by Rings
moved into Offtopic , coz its definity not a bug related on PB.
Re: avast complains it is virus when threadsafe is off
Posted: Fri Aug 05, 2011 3:43 pm
by Rook Zimbabwe
Thread safety is a computer programming concept applicable in the context of multi-threaded programs. A piece of code is thread-safe if it can be safely invoked by multiple threads at the same time.
You are probably trying to access some variable from multiple portions of your program? In the multi-threaded OS several operations execute at almost the same time sharing the same memory space and having access to the same variables... turning on THREADSAFE is a way to add a traffic cop, if you will, to the program.
You may have sloppy vairable names or some sort of forced OOPish scheme that actually isn't or something else... cannot tell without code

Re: avast complains it is virus when threadsafe is off
Posted: Sat Aug 06, 2011 8:33 am
by sartic
I use global variables. Have few procedures,... Everything was in code but after adding some code avast go berserk.
I do not mind adding threadsafe option it adds few KB to code. I do not want my users to have Avast alarm

ClamAv is bigger problem many false positive from my code hehe
Everytime i compiled final I have to check width ClamAv (it sits on my web host and kill my uploads if it false...
ps: sorry not bug but big problem (that i solved now, I hope

Re: avast complains it is virus when threadsafe is off
Posted: Sat Aug 06, 2011 3:37 pm
by GWarner
First things I'd check are:
1. Are you running the latest version of PureBasic?
2. Are you running the latest version of Avast?
3. Is Avast's virus database fully up to date?
I am running PureBasic v4.51 (eagerly awaiting v4.60!

)
I am running Avast v6.0.1203 (latest version)
My virus database is 110806-0 (also latest version)
And I am not getting any virus alerts about PureBasic or any of my compiled programs, thread safe or not.
Re: avast complains it is virus when threadsafe is off
Posted: Sat Aug 06, 2011 4:12 pm
by Danilo
I am using Microsoft Security Essentials since it became free (was paid software before)
and never had any problem with it:
http://www.microsoft.com/security_essentials
Virus definition updates come automatically with windows update.
Re: avast complains it is virus when threadsafe is off
Posted: Sat Aug 06, 2011 4:23 pm
by GWarner
I'd probably use that since it could replace both Avast and SpyBot S&D, but I have never been able to get it to auto update properly.
I suspect that I have some registry setting somewhere that's causing it and that the only way to fix it will be to re-install Windows, but since Avast and SpyBot both work and are both free, I'll use them rather than reinstall Windows just to get Security Essentials working.
Re: avast complains it is virus when threadsafe is off
Posted: Sun Aug 07, 2011 7:53 am
by sartic
Everything is updated (PB is not beta).
MSE is not configurable as Avast, but is free for buissness up to 10 computers.
Re: avast complains it is virus when threadsafe is off
Posted: Sun Aug 07, 2011 2:49 pm
by ar-s
Hi,
Some tips often correct the false positive problem.
Include an icon to your exe
Include the version's info before compiling
Include a data (for example a picture) to make your exe bigger..
Try that then check your prog on VirusTotal then into your avast too.
That is working almost all the time for mines.