Page 1 of 1

[Solved] PB crashes when compiling

Posted: Tue Dec 15, 2015 3:45 pm
by SeanC
Hello,

I am running Windows 10 64 bit version 1511 OS build 10586.29.

When I compile in PureBasic the application crashes. I have tried compiling an empty file and this also crashes. I have reinstalled PB and the issue persists.

I was able to compile about a month or so ago without issue.

Does anyone have any suggestions on how I can get my installation working correctly?

Thanks,
-Sean

EDIT: current version is PureBasic 5.40 LTS (Windows - x64)

Re: PB crashes when compiling

Posted: Tue Dec 15, 2015 4:39 pm
by Little John
As a first trial, you can switch off your anti virus programm and see whether compiling then works as expected.

Re: PB crashes when compiling

Posted: Tue Dec 15, 2015 4:43 pm
by SeanC
Thanks! That was it.

Re: [Solved] PB crashes when compiling

Posted: Tue Dec 15, 2015 5:56 pm
by Little John
You are welcome! However, switching off the anti virus programm is not a permanent solution of course. :-)

When compiling one code in the PureBasic IDE, PureBasic creates a file named "PureBasic_Compilation0.exe" in the %temp% directory, or in the directory where the main source code file is if the following option is checked
Compiler > Compiler Options... > Compile/Run > [ ] Create temporary executable in the source directory
Depending on what you are doing, there can be more temporary EXEs created by PB, named "PureBasic_Compilation1.exe", "PureBasic_Compilation2.exe" etc. You'll have to enter all those file names (or a matching pattern, if possible) into the white list of your anti virus program.