Purebasic 6.10 beta 6

Just starting out? Need help? Post your questions and find answers here.
wawavoun
User
User
Posts: 38
Joined: Fri Oct 18, 2019 4:49 pm

Purebasic 6.10 beta 6

Post 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)
DarkDragon
Addict
Addict
Posts: 2346
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Purebasic 6.10 beta 6

Post 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.
bye,
Daniel
wawavoun
User
User
Posts: 38
Joined: Fri Oct 18, 2019 4:49 pm

Re: Purebasic 6.10 beta 6

Post 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
DarkDragon
Addict
Addict
Posts: 2346
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: Purebasic 6.10 beta 6

Post 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:

Image

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
User avatar
ChrisR
Addict
Addict
Posts: 1483
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Purebasic 6.10 beta 6

Post 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.
BarryG
Addict
Addict
Posts: 4215
Joined: Thu Apr 18, 2019 8:17 am

Re: Purebasic 6.10 beta 6

Post by BarryG »

Anti-virus companies seem to lie about what they've detected, including Microsoft. Check this out this Microsoft scan:


Image


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. :evil:
wawavoun
User
User
Posts: 38
Joined: Fri Oct 18, 2019 4:49 pm

Re: Purebasic 6.10 beta 6

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 6305
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Purebasic 6.10 beta 6

Post 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
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
BarryG
Addict
Addict
Posts: 4215
Joined: Thu Apr 18, 2019 8:17 am

Re: Purebasic 6.10 beta 6

Post 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.
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Purebasic 6.10 beta 6

Post by Quin »

I'm curious, has anyone figured out if this is limited to the 6.10 C or ASM backend specifically?
Post Reply