Page 1 of 1
purebasic_compilation0.exe has stopped working.
Posted: Mon Dec 14, 2020 8:48 pm
by meave
Hi folks,
Just trying PB free version, i'm getting errors when compiling some of the examples,
seems to be 3d ones mainly (camera.pb works ok) ....
When i try to run/compile bridge.pb i get :-
"purebasic_compilation0.exe has stopped working." windows message,
followed by :
"the debugged executable quit unexpectedly." from PB.
I'm running windows 10 home on a toshiba satellite l670
Pentium P6200, x64 type.
I've run the search_pb_forums.pb and can't find anything that looks similar.
Any one have any clues ?
Any help appreciated, TIA etc..
Cheers,
Pete
Re: purebasic_compilation0.exe has stopped working.
Posted: Mon Dec 14, 2020 9:10 pm
by Mijikai
Maybe some AV software interferes?
Re: purebasic_compilation0.exe has stopped working.
Posted: Mon Dec 14, 2020 9:33 pm
by BarryG
Definitely sounds like your anti-virus software is blocking the exe. Disable it as a test to see.
Re: purebasic_compilation0.exe has stopped working.
Posted: Mon Dec 14, 2020 10:21 pm
by meave
Hi, thanks for the replies ...
I'm just running windows security
I've tried allowing pbcompiler & pbdebugger through the firewall (is that right ?)
the windows error seems to have gone, but i'm still getting the
"the debugged executable quit unexpectedly." error
Some more developments :-
If i run camera.pb in the ide, it works fine.
If i create an exe and run it it says "the 3d engine can't be initialised" !?
If i run bridge in the ide it just ends.
If i run bridge in the ide with debug enabled, i get the "the debugged executable quit unexpectedly." error.
If i create an exe and run it it says "the 3d engine can't be initialised" !
Arrrgh ! i never had this trouble with vax basic !! (or blitz3d iirc)
BTW, why would changing firewall/av settings have anything to do with anything ? They're
not internet related programs ?
Thanks for the help.
Pete
Re: purebasic_compilation0.exe has stopped working.
Posted: Mon Dec 14, 2020 11:16 pm
by infratec
If you create a 3D exe, then you need the Engine3D.dll in the same directory as the exe.
If you don't access network, firewall rules are the wrong place
It is more the virus scanner which can make trouble.
Re: purebasic_compilation0.exe has stopped working.
Posted: Tue Dec 15, 2020 12:55 pm
by BarryG
meave wrote:Arrrgh ! i never had this trouble with vax basic !! (or blitz3d iirc)
Don't give up. This is just an initial learning curve. PureBasic is far superior to Vax and Blitz once you get to know it.
meave wrote:why would changing firewall/av settings have anything to do with anything ?
Anti-virus apps sometimes panic when they see a newly-created executable that tries to run. Nothing unusual with that.
Re: purebasic_compilation0.exe has stopped working.
Posted: Tue Dec 15, 2020 3:04 pm
by skywalk
No matter the compiler, you must whitelist your exe's with whatever antivirus you use.
Some exe's may be forgiven, while recently, Purebasic exe's are more aggressively quarantined.
Also, change your IDE preferences to compile exe's in your source directory.
Re: purebasic_compilation0.exe has stopped working.
Posted: Tue Dec 15, 2020 4:36 pm
by meave
Thanks for all the input people !
If you create a 3D exe, then you need the Engine3D.dll in the same directory as the exe.
Ah.. that's that one sorted ! Thanks Infratec
Now ... camera.exe runs fine, but bridge.exe just ends abruptly with no error message.
After a lot of MessageRequestering it appears that its the renderworld() bit which is
causing problems, ( although it works fine in camera !?).
Investigations continue, any further suggestions welcome.
Cheers
Pete.
Re: purebasic_compilation0.exe has stopped working.
Posted: Tue Dec 15, 2020 5:02 pm
by infratec
Sometimes it depends on the graphic card driver.
Have you set the subsystem to opengl?
If not, try it. (Compiler Options -> Library subsystem)
Re: purebasic_compilation0.exe has stopped working.
Posted: Tue Dec 15, 2020 7:03 pm
by meave
infratec wrote:
Have you set the subsystem to opengl?
If not, try it. (Compiler Options -> Library subsystem)
You sir, are a genius !
That did the trick.
...which surprises me.
The documentation suggests that windows should work with
directX as default. Could it be that the directX version in the subsystems directory is v11
whereas my system says i have v12...?
Any way, progress at last.
Thanks again
ttfn
Pete