Error occured creating Resource (PBR) file

Started by David J Walker, June 16, 2005, 11:16:14 PM

Previous topic - Next topic

David J Walker

The above error suddenly appeared, and prevents compilation.

Project has been under construction for some days.

No other project seems to have been affected.  All paths are OK.

The error seems to have appeared after I resized/centered a number of buttons using the Format commands on the menu.

Any ideas?

TIA

Dave

TechSupport

Did you change your project to output the code to a directory different than where your source files are located? ie. Have you specified a directory under "Project Properties", "Code Output Directory". If you have, then are you using any user defined resource modules in your project? If you are, then make sure that you copy any images, etc... that are referenced in your resource module to the specified output directory.

If the above is not true, then try compiling the FireFly generated .rc file in the PB Editor to see what error message is reported.

The format commands would have no effect on the resource compilation.

David J Walker

All output paths are correct, no changes from default setup

No user defined resources other than one icon, which is in same folder as everything else.

Compiling .RC with PB, I get:
Successfully created E:\proj_32\Emailer\CODEGEN_QUICKMAIL_RESOURCE.res
Error creating .PBR resource.

However, compiling .rc with JFP gives:
Resource (RES/PBR) created successfully.

QuoteThe format commands would have no effect on the resource compilation.

That's what I thought.  But that was the last thing I'd done before it stopped compiling.

From what I can see of the source files, everything looks OK and in the right place.

Very strange.

Dave

TechSupport

hmmm.... yeah, that is very strange. You may try manually deleting all files in the code output directory and then re-compile your project.

It is wierd that the res file would create but not the pbr.

If you wish to send me the source code then maybe I can do a little more investigative work from my end.

David J Walker

Fixed!

Duplicate entries in .prj as below:

[Objects]
Form=EditText.frm|2202180496|29717319
Form=emailer.frm|2203983088|29717319
Form=emailer.frm|2205785680|29717319
Form=FrmNewAddress.frm|2206987408|29717319
Form=FrmNewAddress.frm|2208289280|29717319
Module=EmailerStuff.inc|2208589712|29717319
Module=SendFile.inc|2208990288|29717319

Commented out the duplicates, now working OK again!

Perhaps a check for dupes is needed, it was probably me removing/replacing forms or something like that caused it .  As I know to my considerable cost, it's amazing the fiendishly convoluted and ingenious methods that the dreaded users manage to come up with to frustrate your best efforts.

Cheers!

Dave

TechSupport

Hi Dave,

Great news that you found the solution. Interesting that there appeared duplicate file entries in the project list. I will have to keep an eye out for what would cause that.

I will disregard the email that you sent me and delete the source code - for your own piece of mind knowing that your code is not floating around the internet. ;)