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 / [DBPro - Win7] Strange Bug?

Author
Message
WickedVixen
19
Years of Service
User Offline
Joined: 28th Mar 2007
Location: New Brisbane, Utopia Prime, VGC GHQ
Posted: 20th May 2011 05:24
I have created an animated SPRITE demo and working on displaying certain characters found in the image.

I am not sure how many images across is allowed for the maximum, but I have an image of 56 x 1 @ 16 x 16. I will add that as a download.

Here's my source file.


It keeps giving me a Failed to 'CFileBuilder::AddPCKToEXE' and quits, leaving an EXE file and a PCK file in the project folder.

I've shut down the IDE and restarted it, even rebuilt the keywords, and it still screws up. Even in Debug Mode, it gives me Runtime Error 300 [Illegal Sprite Command] Line 10.

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 25th May 2011 16:39
The `Failed to 'CFileBuilder::AddPCKToEXE' message is one I have seen often. It seems semi random generally. I certainly notice I get it far more regularly when coding on my slower, basic machine with low memory than it does on my main with lots. But it does crop up on both.
As to your code above I have not tried it, but I can't see much use for the line.

a$ = "images\"

It is not used anywhere else in the program. Where you meaning to add it to the start of the create animated sprite command? If so you missed it and the sprite should not load at all.

Not sure what all that nonsense is in between the remstart and remend either. I assume it is for your reference.

http://s6.bitefight.org/c.php?uid=103081
nonZero
15
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 10th Jul 2011 19:07
This is caused by Windows. You see when DBPro compiles your code, it writes to an EXE file (duh) then executes it. Now if you have an EXE file that already exists, ie you compiled your code once before, you will get this problem because win7 denies DBPro permission to write to the file or delete it (because any modifying/deleting of an executable file by an unknown source is VIRUS behavior). There is also a glitch that involves indexing of folders known to cause this. There are two solutions:

1) Delete your executable after each compile (not recommended)

2) Disable windows security utterly (but make sure you get a 3rd-party security system to make up for this), give your account max priviledges AND disable search indexing for your projects folder (%DBPInstallPath%\Projects\).

If this problem persists or if you need help/clarification regarding my instructions, PM me and I'll have a look into it (Can't promise an instant reply as I'm limited in my net access right now). Good luck, hope it worx and hope this reply isn't too late, only joined today.

There are 3 ways to do something: The right way, the wrong way and MY WAY...
Darkfoil
20
Years of Service
User Offline
Joined: 7th Jan 2006
Location: Montanchez (Spain)
Posted: 12th Jul 2011 04:04
I used to get the `Failed to 'CFileBuilder::AddPCKToEXE' message on my Windows 7 machine. The only way I have found to get around it is to disable my Norton Anti Virus before I compile the code.

Darkfoil.

Login to post a reply

Server time is: 2026-07-10 23:13:22
Your offset time is: 2026-07-10 23:13:22