Getting a weird error on starting PureBasic 32 AND 64 bit

Working on new editor enhancements?
karmacomposer
Enthusiast
Enthusiast
Posts: 106
Joined: Sun Jul 29, 2012 2:51 pm

Getting a weird error on starting PureBasic 32 AND 64 bit

Post by karmacomposer »

I tried to startup PureBasic this morning and I get the following error:

Constant already declared in another resident:
#TH32CS_INHERIT

and the compiler does not work. The button is greyed out. If I try to restart
the compiler - I get the same error.

I purchased PureBasic, so this is not a demo thing.

I tried freshly installing both the 32 bit and 64 bit versions and no difference.
I cannot compile anything because I get an error when I try to start the
compiler - and the same error comes up when you first start PureBasic.

Any help would be appreciated.

Mike
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by ts-soft »

Have you installed both version in the default dir?
Should on most systems like:
32 bit to C:\Program Files (x86)\purebasic
64 bit to C:\Program Files\purebasic

you have to install both versions in different dirs!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
karmacomposer
Enthusiast
Enthusiast
Posts: 106
Joined: Sun Jul 29, 2012 2:51 pm

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by karmacomposer »

ts-soft wrote:Have you installed both version in the default dir?
Should on most systems like:
32 bit to C:\Program Files (x86)\purebasic
64 bit to C:\Program Files\purebasic

you have to install both versions in different dirs!
Yes, they are in the default directories. Why do I have to change this when it worked before just fine???

Mike
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by ts-soft »

You should not change this, is only a question to find the error :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
karmacomposer
Enthusiast
Enthusiast
Posts: 106
Joined: Sun Jul 29, 2012 2:51 pm

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by karmacomposer »

I did as you suggested and that did fix it. Thanks.

Mike
Zach
Addict
Addict
Posts: 1656
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by Zach »

I'm confused...

Where were they installed before (the 32 bit and 64 bit respectively) and where did you change them to be installed to?

Mine run just fine when installed to the default paths for 32 and 64 bit applications, and it sounds like you said that's how you installed them? :?

Why should installing both to a folder named "Purebasic", in different directory trees, result in an error? Plenty of programs do that with "\Program Files\" and "\Program Files (x86)\"

?
Image
karmacomposer
Enthusiast
Enthusiast
Posts: 106
Joined: Sun Jul 29, 2012 2:51 pm

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by karmacomposer »

Zach wrote:I'm confused...

Where were they installed before (the 32 bit and 64 bit respectively) and where did you change them to be installed to?

Mine run just fine when installed to the default paths for 32 and 64 bit applications, and it sounds like you said that's how you installed them? :?

Why should installing both to a folder named "Purebasic", in different directory trees, result in an error? Plenty of programs do that with "\Program Files\" and "\Program Files (x86)\"

?
I had them installed in the default /program files(x86)/PureBasic and /program files/PureBasic

Then my computer mysteriously rebooted overnight and the next day I could not run either with the compiler working.

As per the first reply, I un-installed them and re-installed them in the same place - still did not work. I then un-installed them and installed them in c:\PureBasic32bit and c:\PureBasic64bit and now they both work.

Bizarre! Fortunately, all of my actual work in in /My Documents/PureBasicProj, so nothing was ever lost (and since I have only been using it less than a week, there was not much to lose anyway).

Mike
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by IdeasVacuum »

Possibly the un-install did not do enough. I use Revo Uninstaller (free), it checks very thoroughly: http://www.revouninstaller.com/
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: Getting a weird error on starting PureBasic 32 AND 64 bi

Post by moogle »

Perhaps this turn into a feature request where we have a PB that installed once and can support 32 and 64 bit compilation.
Image
Post Reply