purebasic_compilation0.exe has stopped working.

Just starting out? Need help? Post your questions and find answers here.
meave
New User
New User
Posts: 5
Joined: Wed Dec 09, 2020 9:58 pm

purebasic_compilation0.exe has stopped working.

Post 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
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: purebasic_compilation0.exe has stopped working.

Post by Mijikai »

Maybe some AV software interferes?
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: purebasic_compilation0.exe has stopped working.

Post by BarryG »

Definitely sounds like your anti-virus software is blocking the exe. Disable it as a test to see.
meave
New User
New User
Posts: 5
Joined: Wed Dec 09, 2020 9:58 pm

Re: purebasic_compilation0.exe has stopped working.

Post 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
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: purebasic_compilation0.exe has stopped working.

Post 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 :wink:
It is more the virus scanner which can make trouble.
BarryG
Addict
Addict
Posts: 4219
Joined: Thu Apr 18, 2019 8:17 am

Re: purebasic_compilation0.exe has stopped working.

Post 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.
User avatar
skywalk
Addict
Addict
Posts: 4241
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: purebasic_compilation0.exe has stopped working.

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
meave
New User
New User
Posts: 5
Joined: Wed Dec 09, 2020 9:58 pm

Re: purebasic_compilation0.exe has stopped working.

Post 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.
infratec
Always Here
Always Here
Posts: 7662
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: purebasic_compilation0.exe has stopped working.

Post 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)
meave
New User
New User
Posts: 5
Joined: Wed Dec 09, 2020 9:58 pm

Re: purebasic_compilation0.exe has stopped working.

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