![]() |
Forum Index : Microcontroller and PC projects : [Micromite]Error:Too Many Subs and Func
Author | Message | ||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
Hi I've just got the Too Many Subs and Functions error on a uMite and the only way I could clear it was to do a reset as per page 15 of the Micromite User Manual and then comment out unused Subs/Funcs from my library and then reload the programme. Typing "NEW" just kept coming back with the same Error message. It would be great if MMBasic caught this error and gracefully handled it rather than requiring a reset, eg allowed a NEW. @TassyJim, Please Is there any chance MMEdit could 1) Warn that there are too many Subs/Functions as per Page 33 Micromite User Manual PRIOR to downloading the code to the uMite ? and similarly for the Maximite although hitting the limits with the Maximite is much less likely 2) Auto-Crunch unused Subs/Funcs from the download to the uMite I must admit I got a real fright and thought I'd bricked my uMite (I only have a PicKit 2), but the Reset does work thank goodness. Many thanks Peter - GM8JCF The only Konstant is Change |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3269 |
Interesting bug that you have found there (if you can call any damn bug "interesting"). When you enter NEW or EDIT at the command line MMBasic treats it as if it is running a short program consisting of one command. When it runs a program the first thing that the interpreter does is build a table of the sub/funs in the program stored in flash - this is so that it can immediately jump to them when they are called without having to scan the program. Your problem was that there were too many sub/funs which did not even allow the NEW command to get started. Sorry for giving you a fright, I will fix this in the next version - and increase the number of sub/funs allowed. Geoff Geoff Graham - http://geoffg.net |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
Hi Geoff That was quick ! Thank you. I can see the merit of how subs/funcs get located and very useful for entering stuff in immediate mode. What about a statement "RESET" which does what shorting pins 11&12 does ? Hope all is well Peter The only Konstant is Change |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6220 |
Something like this in the Variable report: Functions: 2
Subroutines: 25 Total: 27 Variable Type Referred to in line: InitBCDLib S 17 439 DivConst 19 21 97 267 etc See the V3.4.14 update post. Jim VK7JH MMedit |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
Got it The only Konstant is Change |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |