(2011-04-19, 20:57:43)Mikael Gustafsson Wrote: Which language tool set and IDE do you use?
The configuration settings are usually included when you use Microchips products.
MPLAB 8.46
After more investigation, I have found the config bits ARE included in both a standard build and an export. (note they are at 0x1F00000 if you use a hex editor)
I also think the problem may have been with the IDE switching the 'Configuration Bits set in code' check box off when reopening the project. I have now defined all the config bits in code to hopefully prevent this happening again.
*NEW INFO*
I now know why I think the settings were not sticking.
In windows 7, any files written to a programs executable directory are redirected to a 'compatability' folder in the users directory. Thus there are two copies of your file. The original in the c:\Program Files\... and a copy of your changed file in a 'compatability' folder. When you re-read the file, it reads the unchanged file not the one from the compatability folder.