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)
Purebasic 6.10 beta 6
-
- Addict
- Posts: 2346
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Purebasic 6.10 beta 6
There are two main solutions:wawavoun wrote: Sat Feb 10, 2024 6:04 pmI dont want to avoid scan in this temp directory.
How can I solve the problem ?
- Uninstall the anti virus
- Bloat your software by importing more dependencies. If your import table is big enough it'll look less suspicious.
bye,
Daniel
Daniel
Re: Purebasic 6.10 beta 6
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
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
-
- Addict
- Posts: 2346
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: Purebasic 6.10 beta 6
You can tell PB to do that by default for you:wawavoun wrote: Sun Mar 10, 2024 9:10 pmCreate an exe and run it from the source directory is a lost of time...

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.
bye,
Daniel
Daniel
Re: Purebasic 6.10 beta 6
Salut Philippe,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...
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
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:
Says it all. You can't trust any of them to give correct detections. 

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

Re: Purebasic 6.10 beta 6
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
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
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
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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Purebasic 6.10 beta 6
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.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
Re: Purebasic 6.10 beta 6
I'm curious, has anyone figured out if this is limited to the 6.10 C or ASM backend specifically?