Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:45 16 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Bug in MMBasic - STATIC variables in interrupt routines

Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10590
Posted: 02:56pm 08 Dec 2020
Copy link to clipboard 
Print this post

I've discovered a bug in MMBasic that seems to be common to all versions and have informed Geoff.

If you use interrupt routines with static variables make sure that the static variable names are unique otherwise static variables with the same name in other subroutines may be corrupted.
 
SimpleSafeName

Guru

Joined: 28/07/2019
Location: United States
Posts: 351
Posted: 04:46pm 08 Dec 2020
Copy link to clipboard 
Print this post

Nice catch, good to know.

And you can do a work-around, then it's a "feature". :)
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025