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 / Frequent Error Message in DBP:`Failed to 'CFileBuilder::AddPCKToEXE'

Author
Message
ZestyPro
14
Years of Service
User Offline
Joined: 27th Aug 2011
Location: The Grid
Posted: 20th Sep 2011 02:26
This message appears every time I try to execute my source code.

is there a solution? Will The Game Creators fix it?

Haha!
Mr Bigglesworth
18
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 20th Sep 2011 06:21
It is your anti-virus messing with dbPro. Try adding the dbPro folder and your project folder to your anti-viruses exception list.
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 21st Sep 2011 00:16
Its not the anti-virus. I too get this error come up. All I do is recompile it and it works just fine. Its random when it does it.

Others I have seen have had this issue and not been able to resolve it, but in admin mode you just recompile and it works.

"Life is like a box of chocolates.. eat it before it melts."
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 21st Sep 2011 00:18
Delete the semi-compiled exe file it created and try again. It happens when the compiled, but un-linked exe file is open when the linker try's to add the pck file into the "player" part of the dbp exe.

My signature is NOT a moderator plaything! Stop changing it!
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 21st Sep 2011 00:23
Quote: "Delete the semi-compiled exe file it created and try again. It happens when the compiled, but un-linked exe file is open when the linker try's to add the pck file into the "player" part of the dbp exe."


Exactly right. When I did a search for the "exe" after a failure, it turned out the EXE was corrupted. So I just recompiled and it came up just fine.

"Life is like a box of chocolates.. eat it before it melts."
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 21st Sep 2011 00:47
I have to agree with Mr. Bigglesworth. I have added "The Game Creators" folder to my anti-viruses exception list. As long as my project is in this folder or a subfolder, this error does not occur. I still get this error when compiling a project that’s not in “The Game Creator” folder but after clicking OK on the error message the program will still run.
JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 21st Sep 2011 04:34 Edited at: 21st Sep 2011 04:42
Quote: "I have added "The Game Creators" folder to my anti-viruses exception list. As long as my project is in this folder or a subfolder, this error does not occur."


Weird, because I have tested it without an anti-virus installed and I still get this error. This is why I do not believe this is an Anti-Virus problem. Its a permissions problem. XP does not have this problem. Vista and Win7 do.

"Life is like a box of chocolates.. eat it before it melts."
French gui
22
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 21st Sep 2011 16:24
Quote: "Failed to 'CFileBuilder::AddPCKToEXE'"


I get this if I try to compile when the same already compiled program is running. Maybe try to open the task manager to check that...
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 21st Sep 2011 20:12
Quote: "Weird, because I have tested it without an anti-virus installed and I still get this error."

the same here, i get that error and i don't have any antivirus installed. Very often it happens 10 times in a row before i have a succesfull compile. I'm using windows 7 x64. On windows xp i didn't have this problems

ZestyPro
14
Years of Service
User Offline
Joined: 27th Aug 2011
Location: The Grid
Posted: 22nd Sep 2011 00:31
thanks everyone! it usually happens for a while, then i restart, and it doesn't happen(for a while).

Haha!
Hotline
17
Years of Service
User Offline
Joined: 22nd Aug 2008
Location:
Posted: 25th Sep 2011 20:42
Quote: "Weird, because I have tested it without an anti-virus installed and I still get this error. This is why I do not believe this is an Anti-Virus problem. Its a permissions problem. XP does not have this problem. Vista and Win7 do."


I have XP and have had this problem frequently (can't compile at all).Then i added the dbpro temp/exe/compiler dirs to exception list in avast and now works fine , but still get this error sometimes.

RonsWare
15
Years of Service
User Offline
Joined: 5th Sep 2010
Location: Netherlands
Posted: 17th Oct 2011 19:26
I have the same problem.
I use windows 7 Ultimate

I use the ESET NOD32 Antivirus program.
When is temporarily disable antivirus and spyware protection there
is no problem compiling.
When i enable the protection the problem is back.

Programming is learning
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 17th Oct 2011 22:35
The problem is your antivirus is probably scanning the newly created exe file before it's been fully linked, which will give you this error.

You need to add the folder you're compiling to the "do not scan these files" folder.

My signature is NOT a moderator plaything! Stop changing it!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Oct 2011 23:21
Any and all of the following can cause this problem:
- virus scanning (regular AV, MS Security essentials etc, especially with real-time protection active)
- auto-backup software
- searching tools (standard search indexing, desktop search programs etc)

The problem isn't limited to the above list, but they are the most likely to interfere with DBPro writing to the output file.

Lucka
21
Years of Service
User Offline
Joined: 1st Oct 2004
Location:
Posted: 17th Oct 2011 23:52
I get this error when i compile and try to use the code on ANY computer but the one i use for programming..

I tried to keep off the AV, but it still happens.
Now i?ll try to get out "Search everithing", but..

In the past there was not this problem at all.
I, actually, cannot share my programs with friends, cause nothing work at all on any PC. I cannot tell'em to close AV, search engine, etc.

What is working on my PC, give this error everywhere else..

It's a BIG problem, guys..

Lucka - gawteam coder - www.gawgames.com
Braude Interactive
19
Years of Service
User Offline
Joined: 1st Aug 2006
Location: Sheffield, UK
Posted: 19th Oct 2011 19:09
This happens to me too, but if I just recompile it runs fine
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Oct 2011 22:24
This always happens to me when I haven't used my hard disc for a while on my laptop. The hard disk goes into an idle mode, and takes a while to spin up again. During the spin up DBP is trying to write to the hard drive, but can't, and that's when I get that error.

TheComet

Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 20th Oct 2011 15:17
Quote: "I, actually, cannot share my programs with friends, cause nothing work at all on any PC. I cannot tell'em to close AV, search engine, etc."

If it's a compile time error, certainly it shouldn't happen if you manage to build an executable and give it to anyone else. Are you sure it's the same error?


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2026-07-11 09:47:25
Your offset time is: 2026-07-11 09:47:25