Sometimes using the sim in MPLAB the program pointer arrow is out of sync with the code that is about to be executed. Often this is fixed with a "Build All" or a restart of MPLAB. But now it is consistently 2 lines out. ie The Program pointer is pointing 2 lines above the actual code that is executing. I recently added the following so I could increase the size of a structure and as there are two #pragma directives it seemed to be the culprit. The structure is pasted below. Very frusting, anyone experienced this or know a fix. Cheers Justin #pragma idata App_Conf_Section //The pragma fixes the following error //Error - section 'App_Conf_Section' can not fit the section. Section 'App_Conf_Section' length=0x00000114 //I can now use all 256 bytes in the config section of EEPROM APP_CONFIG AppConfig ; #pragma idata Remaining_Sect //The pragma fixes this error //Error - section 'App_Conf_ typedef struct _APP_CONFIG { IP_ADDR MyIPAddr; MAC_ADDR MyMACAddr; IP_ADDR MyMask; IP_ADDR MyGateway; IP_ADDR PrimaryDNSServer; struct { unsigned char bIsDHCPEnabled : 1; unsigned char bInConfigMode : 1; } Flags; IP_ADDR SNTPServerAddr; WORD HTTP_PORT; WORD_VAL SerialNumber; IP_ADDR SMTPServerAddr; // Not used. IP_ADDR TFTPServerAddr; // Not used. BYTE NetBIOSName[16]; cj CronJob[8]; BYTE tz_offset; BYTE tz_text[4]; BYTE LCDMsg[2][16]; BYTE BeatServerURL[25]; //www.pickledeye.com WORD HeartBeatDelay; } APP_CONFIG; -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist