Hello people,
ich have a interesting performance by one of my Programs. I have found this code in the Purebasic examples, modified this coding and compiled this. All its normally. Now, i want to change any lines at this program, and i compiled ths and the reponse time get from < 1 second to over 5 Seconds.
My code-changing is not the reason, because i have an idea. I compiled the same program in my virtual pc sp1 under xp sp3 on the same computer and see now: the response time is the same like in the past.
Have any user an idea, what is the problem. I thought, i habe an virus, nothing.
Thanks in the future.
IH
Same Programm have different runtime xp (1sec) win 7 (5 sec)
-
- New User
- Posts: 6
- Joined: Thu May 29, 2014 1:42 pm
Re: Same Programm have different runtime xp (1sec) win 7 (5
Could be the opposite, your anti-virus.Ausprobieren wrote:Have any user an idea, what is the problem. I thought, i habe an virus, nothing.

Try to use compiler option "[X] Create temporary executable in the source directory", and
add PB to the anti-virus exception list. By default PB creates the temp executable in %TEMP%,
and this may cause slow-downs. MS Security Essentials for example had this problem -
looks like it is scanning %TEMP% in more detail, especially .EXE created within %TEMP%.
For excluding PureBasic itself from Microsoft Security Essentials scan (so compilation is faster),
see PB compilation problems with MSE.
- Whole thread: PB compilation problems with MSE
-
- New User
- Posts: 6
- Joined: Thu May 29, 2014 1:42 pm
Re: Same Programm have different runtime xp (1sec) win 7 (5
Ok, i understand. I make this settings and get an compile. Nothing changed. The same performance. For my part i wondering because the Execution workload is very high for a small time on Win 7 and the other from xp have only a little bit Execution workload. I don't understand it. Are there other Lib's or Program's by Purebasic under Win 7 ?Danilo wrote:Could be the opposite, your anti-virus.Ausprobieren wrote:Have any user an idea, what is the problem. I thought, i habe an virus, nothing.
Try to use compiler option "[X] Create temporary executable in the source directory", and
add PB to the anti-virus exception list. By default PB creates the temp executable in %TEMP%,
and this may cause slow-downs. MS Security Essentials for example had this problem -
looks like it is scanning %TEMP% in more detail, especially .EXE created within %TEMP%.
For excluding PureBasic itself from Microsoft Security Essentials scan (so compilation is faster),
see PB compilation problems with MSE.
- Whole thread: PB compilation problems with MSE
Re: Same Programm have different runtime xp (1sec) win 7 (5
Are you sure you have proper permissions for the directories you are trying to access on Windows 7? On Windows, PB generally installs everything under c:\Program Files, including the examples. On Windows 7, this is a protected directory and depending on the rights/permissions you have, trying to compile an example in a sub-directory off the PB directory could cause the EXE to be created in your virtual store in some instances. Is this the issue? I don't know, but it is something to check.
PB programs will run fine under Windows 7 and most will work fine under XP.
PB programs will run fine under Windows 7 and most will work fine under XP.
Best wishes to the PB community. Thank you for the memories. 
-
- New User
- Posts: 6
- Joined: Thu May 29, 2014 1:42 pm
Re: Same Programm have different runtime xp (1sec) win 7 (5
OK, my config ist Win 7 under C:, Purebasic under D:, Workdirectory Purebasic under E: and I have started the compiled program (console) with Adminrights. The same performance.Kuron wrote:Are you sure you have proper permissions for the directories you are trying to access on Windows 7? On Windows, PB generally installs everything under c:\Program Files, including the examples. On Windows 7, this is a protected directory and depending on the rights/permissions you have, trying to compile an example in a sub-directory off the PB directory could cause the EXE to be created in your virtual store in some instances. Is this the issue? I don't know, but it is something to check.
PB programs will run fine under Windows 7 and most will work fine under XP.
I understand your mistrust, but i have no intuition, what for a problem otherwise it is.
Works Win 7 with older mainboards in a other wise? Is this perhaps an idea.