Page 1 of 1
Purebasic 6.10 beta 6
Posted: Sat Feb 10, 2024 6:04 pm
by wawavoun
Hi,
Under Windows 10 this version tilt my Avira antivirus with something call HEUR/APC.
This occur after compile + run a purebasic application.
The file is something like ....Compilation0.exe located into user/temp.
PB 6.04 LTS works well.
I dont want to avoid scan in this temp directory.
How can I solve the problem ?
Thanks and regards.
Philippe
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)
Re: Purebasic 6.10 beta 6
Posted: Sat Feb 10, 2024 8:38 pm
by DarkDragon
wawavoun wrote: Sat Feb 10, 2024 6:04 pmI dont want to avoid scan in this temp directory.
How can I solve the problem ?
There are two main solutions:
- Uninstall the anti virus
- Bloat your software by importing more dependencies. If your import table is big enough it'll look less suspicious.
And you can create the executable in the source directory and exclude that folder instead of temp.
Re: Purebasic 6.10 beta 6
Posted: Sun Mar 10, 2024 9:10 pm
by wawavoun
Hi All,
The problem is still here with 6.10 beta 7...
Version 6.04 works like a charm with the same Avira version and I expect that someone can explain what has changed between the two versions ?
The next PureBasic stable release is probably more or less ready and if no change is made somewhere this mean I will not be able to use it...
May be is it possible to create a parameter so we can change the place where the exe is generated with the "Compile/Execute" or "Execute" command ?
Create an exe and run it from the source directory is a lost of time...
Philippe
Re: Purebasic 6.10 beta 6
Posted: Sun Mar 10, 2024 9:21 pm
by DarkDragon
wawavoun wrote: Sun Mar 10, 2024 9:10 pmCreate an exe and run it from the source directory is a lost of time...
You can tell PB to do that by default for you:
Besides all HEUR/.. things an anti virus mentions are based on HEURistics which are just a rough approximation and thus the anti viruses are to blame.
Re: Purebasic 6.10 beta 6
Posted: Mon Mar 11, 2024 12:58 am
by ChrisR
wawavoun wrote: Sun Mar 10, 2024 9:10 pm
The next PureBasic stable release is probably more or less ready and if no change is made somewhere this mean I will not be able to use it...
Salut Philippe,
It's Avira and other AntiVirus products that should be blamed for doing a poor job, not PureBasic or other products.
They piss off all the developers with their poor quality and all their false positives.
And unfortunately, in addition, with false positives, users think they're doing a good job of detecting viruses and malware.
Read this blog by the well-known Nir Sofer (NirSoft)
Antivirus companies cause a big headache to small developers.
Blog written in 2009, the situation did not get any better.
Re: Purebasic 6.10 beta 6
Posted: Mon Mar 11, 2024 3:03 am
by BarryG
Anti-virus companies seem to lie about what they've detected, including Microsoft. Check this out this Microsoft scan:
This "infected" file that I submitted was generated from this code:
Code: Select all
f=CreateFile(#PB_Any,"[redacted].sys")
If f
For n=1 To 65535
WriteByte(f,Random(255))
Next
CloseFile(f)
EndIf
Says it all. You can't trust any of them to give correct detections.

Re: Purebasic 6.10 beta 6
Posted: Mon Mar 11, 2024 8:28 am
by wawavoun
Re,
Thanks to all and especially to Daniel.
I will try the proposed solution this evening.
I have only one Windows system and one antivirus software. Trying 6.04 and PureBasic works, then trying 6.10b6 or b7 and the antivirus react.
I know that PureBasic is not the real source of the problem but, again, something has changed between 6.04 and 6.10 version and this change act on the antivirus.
So I expect to understand what ???
Thanks again. Regards.
Philippe
Re: Purebasic 6.10 beta 6
Posted: Mon Mar 11, 2024 11:19 am
by mk-soft
The problem is the antivirus programs.
So it is best to always create the executable in the source directory and
Add the project source folder as an exception in the antivirus program
Re: Purebasic 6.10 beta 6
Posted: Thu Mar 21, 2024 1:35 am
by BarryG
wawavoun wrote: Mon Mar 11, 2024 8:28 amsomething has changed between 6.04 and 6.10 version and this change act on the antivirus
A hell of a lot has changed from 6.04 and 6.10, and this means the executable created is obviously now matching some known AV byte pattern. Nothing you can really do about it except white-list the exe with each AV vendor. It's what I have to do with every update of my app.
Re: Purebasic 6.10 beta 6
Posted: Thu Mar 21, 2024 2:37 am
by Quin
I'm curious, has anyone figured out if this is limited to the 6.10 C or ASM backend specifically?