Code Explorer pane stops updating

Discuss the Integrated Development Environment (IDE)

Moderators: David Barker, Jerry Messina

Post Reply
Jerry Messina
Swordfish Developer
Posts: 1246
Joined: Fri Jan 30, 2009 6:27 pm
Location: US

Code Explorer pane stops updating

Post by Jerry Messina » Wed Sep 24, 2014 1:49 pm

I noticed that if the IDE Code Explorer ever sees a divide by 0 exception then it quits updating and you have to close/reopen the IDE to get it working again.

In the following, while editing BUSFREQ if it's ever = 0 then updates to the explorer pane stop. If the division is protected with a test, then it continues to work

Code: Select all

clock = 20

#option BUSFREQ = 1200              // <<<<< EDIT THIS VALUE
#define _FCY = _clock*1000000/4

// this check is so the IDE never sees divide by 0 while editing BUSFREQ
// without this test, if BUSFREQ is set to 0 while editing it then the
// Code Explorer stops updating until the IDE is closed and re-opened
'#if (BUSFREQ > 0)
  #define _HALF_PERIOD = (_FCY/(2*BUSFREQ))
'#endif  // (BUSFREQ > 0)

// create the timer constants from the '#defines'
const HALF_PERIOD as word = _HALF_PERIOD

User avatar
David Barker
Swordfish Developer
Posts: 1194
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: Code Explorer pane stops updating

Post by David Barker » Mon Nov 03, 2014 11:36 am

I've fixed this for the next update

User avatar
David Barker
Swordfish Developer
Posts: 1194
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Re: Code Explorer pane stops updating

Post by David Barker » Sun Nov 09, 2014 8:15 pm

A new compiler update is available to download. Click here

http://sfcompiler.co.uk/phpBB3/viewtopic.php?f=1&t=1900

for more information.

Post Reply