avast complains it is virus when threadsafe is off
avast complains it is virus when threadsafe is off
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?!
			
			
									
									Same source was ok until I wrote few lines more of code.
Same source whidth threadsafe on and avast say everything ok?!
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
						Re: avast complains it is virus when threadsafe is off
Ignore the false positive or upload it to avast
			
			
									
									PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

						Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

- 
				IdeasVacuum
- Always Here 
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: avast complains it is virus when threadsafe is off
...Don't ignore it, upload it to Avast as a False Positive.
			
			
									
									IdeasVacuum
If it sounds simple, you have not grasped the complexity.
						If it sounds simple, you have not grasped the complexity.
Re: avast complains it is virus when threadsafe is off
Don't post anti-virus problems as PB Bugs  
 
cheers
			
			
									
									
						 
 cheers
Re: avast complains it is virus when threadsafe is off
Mostly this doesn't help, you become a e-mail, is fixed with the next virusdefinition and nothing has changedIdeasVacuum wrote:...Don't ignore it, upload it to Avast as a False Positive.
 , the false positive is still alive
 , the false positive is still alivePureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

						Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: avast complains it is virus when threadsafe is off
moved into Offtopic , coz its definity not a bug related on PB.
			
			
									
									SPAMINATOR NR.1
						- Rook Zimbabwe
- Addict 
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
Re: avast complains it is virus when threadsafe is off
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.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 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
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
			
			
									
									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

Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
						Re: avast complains it is virus when threadsafe is off
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.
			
			
									
									
						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
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.
			
			
									
									
						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
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.
			
			
									
									
						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
Everything is updated (PB is not beta).
MSE is not configurable as Avast, but is free for buissness up to 10 computers.
			
			
									
									MSE is not configurable as Avast, but is free for buissness up to 10 computers.
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
						Re: avast complains it is virus when threadsafe is off
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.
			
			
									
									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.
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4
						My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4
Code: Select all
r3p347 : 7ry : un71l d0n3 = 1







