Page 1 of 1

Getting a weird error on starting PureBasic 32 AND 64 bit

Posted: Thu Aug 16, 2012 6:03 pm
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

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

Posted: Thu Aug 16, 2012 6:17 pm
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!

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

Posted: Thu Aug 16, 2012 6:56 pm
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

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

Posted: Thu Aug 16, 2012 6:59 pm
by ts-soft
You should not change this, is only a question to find the error :wink:

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

Posted: Thu Aug 16, 2012 7:10 pm
by karmacomposer
I did as you suggested and that did fix it. Thanks.

Mike

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

Posted: Thu Aug 16, 2012 11:05 pm
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)\"

?

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

Posted: Fri Aug 17, 2012 4:39 pm
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

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

Posted: Fri Aug 17, 2012 4:56 pm
by IdeasVacuum
Possibly the un-install did not do enough. I use Revo Uninstaller (free), it checks very thoroughly: http://www.revouninstaller.com/

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

Posted: Fri Aug 17, 2012 7:00 pm
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.