Page 1 of 2

Compiler problem

Posted: Fri Oct 19, 2007 10:36 am
by silvercover
Hi,

When i try to run something PureBasic says "compiler isn't loaded yet...please try again". What's wrong?

I already reinstalled PureBasic but it did not help. :(

Re: Compiler problem

Posted: Fri Oct 19, 2007 10:47 am
by PB
I get this when running from a USB stick sometimes. Don't know why it happens.

Posted: Fri Oct 19, 2007 11:12 am
by tinman
I also get this running from my USB stick.

Either going to the menu option for Compiler->Restart Compiler or just restarting the IDE allows it to work.

Posted: Fri Oct 19, 2007 11:14 am
by PB
Restarting the compiler doesn't work for me. I usually have quit and restart
the IDE a lot of times to get it working. I'm talking like 20 times or so. Wish
I knew what it was, but it's not something Freak can fix apparently. :(

Posted: Fri Oct 19, 2007 11:15 am
by tinman
Guess I'm lucky. Thankfully, that would drive me nuts.

Posted: Fri Oct 19, 2007 11:16 am
by silvercover
I restarted the compiler several times, but nothing happened. from now on when i start PureBasic it shows this error message:
Error: Constant already declared in another resident: #AW_ACTIVATE
I use PureBasic 4 on WinXP SP2.

Thank you guys for your replies.

Posted: Fri Oct 19, 2007 11:52 am
by Trond
Uninstall PureBasic, delete the PureBasic directory and then install again.

Posted: Fri Oct 19, 2007 12:04 pm
by byo
Like tinman, this happens to me too with a USB stick but only after I just plugged it in. I have to wait for 20 seconds or so (maybe Windows hasn't finished initialiasing the driver correctly yet) and then I restart the compiler and all is fine.

After the initial delay, the compiler will load correctly everytime I start the IDE.

Posted: Fri Oct 19, 2007 12:08 pm
by silvercover
Thank you guys. I did what Trond said and it turned to be OK :) .

Posted: Fri Oct 19, 2007 1:16 pm
by PB
> this happens to me too with a USB stick but only after I just plugged it in

I've plugged mine in (two different ones, actually) and left them for over half
an hour and the compiler still doesn't start. If I ever work out why, I'll definitely
let Freak know. :) It's like the "start compiler" routine gets stuck in an endless
loop or something.

Posted: Fri Oct 19, 2007 1:22 pm
by freak
PB:
Could you test if you can start "pbcompiler.exe /STANDBY" from the cmd.exe on your USB stick ?
That would help find out if it is a compiler or IDE problem.

If it works, the compiler should display something as:
STARTING 4.10 PureBasic 4.10 Beta 4 (Windows - x86)
READY

If so, typing "END<enter>" (case is important) should end the compiler again.
If it just hangs, you'll have to kill it by closing the cmd.exe

thanks.

Posted: Fri Oct 19, 2007 3:00 pm
by PB
@Freak: It's Friday night at 11:55pm here so I can't test until I get back to
work on Monday. That's where the problem always occurs. Here it home it
sometimes does it, but not as often, so home isn't a good enough test. At
work it's more reproducable.

Maybe work's virus checker could be doing something to it?

Posted: Fri Oct 19, 2007 5:20 pm
by derRaab
Hi, I have the same problem with PureBasic 4.10 Beta 2 for Mac OS X. ?

Posted: Mon Oct 22, 2007 10:27 am
by PB
@Freak: Tried what you said today at work, and for the first few times the
cmdbox just said "STARTING 4.10 PureBasic 4.10 Beta 4 (Windows - x86)"
without going to "READY" -- I had to forcibly kill those attempts.

Then, as expected with the editor, it started going to "READY" by itself.
I really don't know why. No idea. But, at least it's reproducible every time,
so testing any changes you might do will be easy enough.

Posted: Thu Nov 01, 2007 9:52 am
by PB
@Freak: I did more testing, and it seems I can always start the compiler
with the /standby switch, and it behaves as above (going to "ready"), but
doing /portable on PureBasic.exe never goes anywhere. So it seems that
when the IDE starts the compiler, it never sees the "ready" state for some
reason, and keeps waiting... and waiting... and waiting. I have two batch
files for my test, and they are:

Below is in the "Compilers" folder. Running it from my USB stick takes a
short time for "READY" to appear, but it does appear, and always.

Code: Select all

pbcompiler.exe /STANDBY
Below is in the "PureBasic" folder (parent of "Compilers" folder). Running it,
when I haven't run the above batch file, doesn't do anything. The compiler
never seems to be "READY", or the IDE doesn't realise it. BUT, if I run the
above batch file first, and let it become "READY", then kill that batch process
and run the below batch file, then it works normally, as if the IDE suddenly
knows about the compiler. Very, very weird.

Code: Select all

PureBasic.exe /portable