Page 1 of 1

Purebasic 5.42 LTS Crashses when you run

Posted: Sat Mar 12, 2016 3:37 pm
by hinckleyj
Hi All,

I have just installed the 64bit version of the Purebasic Demo (version 5.42 LTE) and have loaded in a few of the demo programs which come with the software. They load in fine. However, when you run them (Shift F5), the compiler crashes and causes it to quit.

This in happening on 2 different PCs (Win 7 Pro and a Win 8.1). Both are 64 bit and have fast processors and 4GB of RAM. All other software on both machines runs fine, but both crash using Purebasic.

Any ideas anyone?

Thanks

John.

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sat Mar 12, 2016 3:53 pm
by infratec
Hi,

if you tell us with which program it crashes,
because I don't want to test all of them if I want to replicate your crash.

Hint:
If they are 3D graphic related, maybe you need opengl or directx as subsystem,
depending on your graphics card and drivers.

Bernd

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sat Mar 12, 2016 3:59 pm
by Little John
@hinckleyj:
Maybe it's the same problem as here.

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 9:41 am
by hinckleyj
Hi Bernd.

I did reply yesterday but my post didn't appear for some reason.

I have opened the demo from within the 3D folder “Bridge.pb” and get as far as it compiling 449 lines of code, then a window opens asking if I want to launch in Windowed or full screen, then I get the error, followed by “The debugged executable quit unexpectedly”.

Some of the other demos run fine, and others produce the error, so maybe it’s a 3D graphics issue?

Thanks.

John

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 10:03 am
by hinckleyj
Thanks Little John.

I have tried the suggestions in that link and unfortunately it was not that.
I tried switching off AV protection, then I added exclusions in the AV scan to exclude the %temp folder.

Some of the demos run fine, and others error, so I am wondering if its a graphics related issue, although my PC is fairly high spec and new, so I'm not sure what spec is needed to run PureBasic.

Thanks

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 1:10 pm
by infratec
Have you tried 'opengl' as subsystem?

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 1:50 pm
by hinckleyj
Hi infratec,

I am new to PureBasic and am not sure how to add OpenGL Subsystem??

Are you able to elaborate?

Thanks in advance.

John

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 5:03 pm
by Fred
If the demos which are crashing are in the 3D folders, chances are high than it's a 3D related issues. You should try to update your graphics drivers to the last version and as infratec said, try to put 'opengl' in the 'subsystem' field of the window 'Compiler -> Compiler Options...'.

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 5:07 pm
by IdeasVacuum
In the PB IDE, Menu: Compiler/Compiler Options
Image

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Sun Mar 13, 2016 9:50 pm
by hinckleyj
Thanks to IdeasVacuum and Fred.

Adding 'opengl' to that field sorted it. Thank you for the screenshot. I would not have known where that was without your help.

All working!

Thanks to everyone for your help.

Kind regards,

John

Re: Purebasic 5.42 LTS Crashses when you run

Posted: Tue Mar 15, 2016 8:39 am
by Danilo
You should probably re-install DirectX 9.0c using the Web Installer. I used it with Win7/8/8.1/10.
It installs additional DirectX DLLs that are required for some functionality in the Ogre Engine.