Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Undefined Parser Error when compiling.

Author
Message
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Dec 2010 19:37
All of the sudden I'm getting this error about half the time I compile anything in DBPro. I've updated to the latest, I've pulled up a backup and tried that. Nothing seems to get rid of it.

Sometimes it will compile, but there's an EXE and a PCK file where just the EXE should be. It still runs, but I'm assuming that's not the desired result here.

Any idea how to get rid of this? It's really REALLY annoying after compiling 13,000 lines, only to have to do it again, and sometimes a 3rd time before it gets it right.

I'm running Windows 7 64bit for what it's worth..


PARSER ERROR
------------
UNDEFINED PARSER ERROR

PROGRAM TRACE
-------------


ERROR TRACE
-----------
Failed to 'CFileBuilder::AddPCKToEXE'

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Dec 2010 20:41
Yea I get the same annoying problem sometimes. A lot of times I can fix it by either copying the code over to a new IDE window or closing every IDE that might be open and reopening the project.

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Dec 2010 21:12
This happens for me even on fresh reboot and opening the IDE for the first time, and it's hit and miss..

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 13th Dec 2010 22:29 Edited at: 13th Dec 2010 22:33
For me, this problem is caused when Windows tries to update the size/properties pane at the bottom of the project window at the same time as the compiler is trying to write the file.

I solved the problem by closing the project window before compiling.

KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Dec 2010 23:04
That seems logical, but a little odd.

What do you mean by "Project Window" ??

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 13th Dec 2010 23:23
I mean the folder window which contains the .dbpro file, and the .dba's and the media folder etc.

KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Dec 2010 23:30
I see. I don't have that in BlueIDE. So that probably isn't the issue here.

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 13th Dec 2010 23:31
Yes, I get a similar error with Indigo IDE, I have to change the display mode at least once or I get the error, strange.

KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 13th Dec 2010 23:33
Do you change that in the project settings? Does it go away after that?

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 13th Dec 2010 23:35
Yep, just change it from fullscreen to windowed, and back again in the project pane at the side, and it works fine afterwards.

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 13th Dec 2010 23:59 Edited at: 14th Dec 2010 00:00
erm, no, I meant the Windows folder window with the project in it?



I know it sounds a bit strange, but it genuinely stopped the problem for me.

KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 14th Dec 2010 00:08
OOOOHHHH! That's interesting. I'll give it a shot.

Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 14th Dec 2010 03:47
I've run into issues where it can't compile the project if the exe already exists, but only sometimes.

"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 14th Dec 2010 17:23
There's a big thread about this in the Bug Reports section. They speculate that this happens if something is trying to access the PCK or maybe the EXE while DarkBASIC is trying to compile, meaning DarkBASIC can't edit and delete things like it should. So I guess try closing anything that might try to access those (like Explorer windows, as Prof said; antivirus is another likely problem).

KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 14th Dec 2010 19:20
I never had this problem with Xp or Vista, so I'm wondering if it isn't the "Explorer" issues I've been having with Windows 7.

Any time I click on a Folder, it takes forever to list the contents, even if I was just in that folder moments ago. It's like indexing is disabled or something.

They are probably right though, it's probably explorer trying to read file details of the PCK file before the compiler is done with it.

Login to post a reply

Server time is: 2026-07-21 07:03:46
Your offset time is: 2026-07-21 07:03:46