PORC error with v5.21 LTS
Posted: Thu Feb 20, 2014 1:00 pm
SOLVED!
The problem was my laptop had the environment variable for
"%TEMP%" and "%TMP%" env vars set to a non-existent drive.
Once I changed their values to the local C: drive, everything
compiles again normally.
Maybe a check for this situation can be added to PureBasic,
because it's such a non-obvious error and none of the info
below made it easy to "debug".
I have v5.21 LTS (x86) on an SD card, and today I copied it
from one laptop to another. I then ran PureBasic.exe on the
new PC to "register" it and set the filetypes. I then quit it,
and copied one my source folders to this new laptop, too.
Next, I double-click a ".pb" source file that was copied over,
and when I hit F5 to compile/run, I got a messagebox stating:
When I looked in the folder for the ".pb" file, along with my
source was lots of other files with a ".lib" extension, such as
"2DDrawing.lib", "AlphaImage.lib", "Array.lib", and so on.
This laptop in question is Windows XP, 32-bit. This is the first
time I've been unable to just copy PureBasic to a new PC and
run it without problem. Very strange. Hope it can be fixed.
[Edit] When I try to recompile the source again, I get a new error,
and strangely the entire source code is highlighted/selected.
I deleted PureBasic totally and reinstalled into its default folder
location, and also deleted the Prefs folder, but didn't help at all.
The problem was my laptop had the environment variable for
"%TEMP%" and "%TMP%" env vars set to a non-existent drive.
Once I changed their values to the local C: drive, everything
compiles again normally.
Maybe a check for this situation can be added to PureBasic,
because it's such a non-obvious error and none of the info
below made it easy to "debug".
I have v5.21 LTS (x86) on an SD card, and today I copied it
from one laptop to another. I then ran PureBasic.exe on the
new PC to "register" it and set the filetypes. I then quit it,
and copied one my source folders to this new laptop, too.
Next, I double-click a ".pb" source file that was copied over,
and when I hit F5 to compile/run, I got a messagebox stating:
Code: Select all
PureBasic - Resource error
--------------------------
PORC: *** No message for error 0x8015 ***
--------------------------
OK
--------------------------
source was lots of other files with a ".lib" extension, such as
"2DDrawing.lib", "AlphaImage.lib", "Array.lib", and so on.
This laptop in question is Windows XP, 32-bit. This is the first
time I've been unable to just copy PureBasic to a new PC and
run it without problem. Very strange. Hope it can be fixed.
[Edit] When I try to recompile the source again, I get a new error,
and strangely the entire source code is highlighted/selected.
Code: Select all
Line 0: File not found (PB_EditorOutput.pb)location, and also deleted the Prefs folder, but didn't help at all.