Probably a bug in the compiling phase

Previous topic - Next topic

Kitty Hello

Open the task manager and see what processes are running. Is the "game" running, or gpc.exe resp. gcc.exe?

MrTAToad

Might be worth testing with a new project with one line (say A = 1), and see what happens.

If it doesn't complete the compilation, then check %PATH% (from the command line), and look for any recursion (that creates havoc with programs).

Also check to see if multiple editors are running, gpc/gcc etc too, in the Task Manager

Armoured

#17
Quote from: Kitty Hello on 2009-Oct-22
Open the task manager and see what processes are running. Is the "game" running, or gpc.exe resp. gcc.exe?

In my task manager there is only "g++.exe" when the compiler hangs. No traces of the game in the RAM  :|

Ah there are six "as.exe" one of these is connected to g++.exe.
Five of these six "as.exe" are rests of previous GLBasic crash

Kitty Hello

if you remove all these gcc and as.exe - does it still no longer compile?
VERY BAD!
Try setting the temp path to C:\Temp.

Armoured

#19
Quote from: Kitty Hello on 2009-Oct-23
if you remove all these gcc and as.exe - does it still no longer compile?
VERY BAD!
Try setting the temp path to C:\Temp.

If I remove the six "as.exe" and the "c++.exe" I can compile again but till the next hang  :|
Why change the Temp path?

Kitty Hello

maybe the path is too long or on a different drive. I really have no idea. But peek at the task manager. Does the as.exe hang every time you compile?
Really wait for the thing to finish before you press compile/run again.

Armoured

#21
Quote from: Kitty Hello on 2009-Oct-23
maybe the path is too long or on a different drive. I really have no idea. But peek at the task manager. Does the as.exe hang every time you compile?
No it doesn't hang every time.
It's a random bug sometimes after 3 builds sometimes after 15 builds

Quote
Really wait for the thing to finish before you press compile/run again.

I really wait.  :|

MrTAToad

#22
Are you compiling or compiling and then running ?

What may be worth trying, is, after a computer reset, just compile the project (without running it - and perhaps adding in extra spaces on the main project to make sure that is always compiled), multiple times without running the program.

If that is fine, but crashes after compiling and running, then it looks like your program is doing something dodgy.

It sounds like the project file may be corrupt.  Might be worth re-installing GLBasic too.

Armoured

Quote from: MrTAToad on 2009-Oct-23
Are you compiling or compiling and then running ?

What may be worth trying, is, after a computer reset, just compile the project (without running it - and perhaps adding in extra spaces on the main project to make sure that is always compiled), multiple times without running the program.

If that is fine, but crashes after compiling and running, then it looks like your program is doing something dodgy.

It sounds like the project file may be corrupt.  Might be worth re-installing GLBasic too.

The hang is before I run my compiled program (build option in the ."compiler" menu).
Try for yourself, load a project then push for 20 - 30 times the F8 key





MrTAToad

No luck here, I'm afraid...

Kitty Hello

If you press F8 20x, the compiler gets initalized serveral times. That's bad. You really must wait until one process has finished before you run or rebuild.

MrTAToad

I think he is (or at least he should be) - he's press F5/F8 and waiting for the linking system to finish (which apparent;y, it doesn't).

Armoured

Quote from: MrTAToad on 2009-Oct-23
I think he is (or at least he should be) - he's press F5/F8 and waiting for the linking system to finish (which apparent;y, it doesn't).

exactly!  :good:

MrTAToad

And you've checked PATH and everything ?

Armoured

#29
Quote from: MrTAToad on 2009-Oct-24
And you've checked PATH and everything ?

My System path for temporary files is: "C:\DOCUME~1\Mario\IMPOST~1\Temp\"
I don't think it's too long.....