![]() |
Forum Index : Microcontroller and PC projects : MMBasic 4.5b bug & crash
Author | Message | ||||
rave Newbie ![]() Joined: 24/02/2018 Location: United StatesPosts: 28 |
Hi, Thanks for the excellent MMBasic 4.5b implementation, which I'm running on a Colour Maximite project. So far things are working out and I am looking forward to contribute some MMBasic code soon. I found an annoying bug in MMBasic 4.5b (I believe 4.5b is the latest version that I can flash to the CMM). I have a simple function IsMatch that matches strings in a certain way and returns 1 on success. Here is my problem: > ? IsMatch("a","a") 1 > ? IsMatch("a","(") Error: Expected closing bracket > ? IsMatch("a",")") ... the screen goes blank and the interpreter crashes ... It appears that any string with a parenthesis in it that is used as an argument in a user-defined function causes an error or a crash ![]() The problem is not caused by the IsMatch function, I tried different ones, here is an example: function IsMatch(a$, b$) IsMatch = a$ = left$(b$, len(a$)) end function - Rob |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
There is a V4.5C available from this thread: https://www.thebackshed.com/forum/forum_posts.asp?TID=6772&PN=2&TPN=2 Halfway down the second page. Jim VK7JH MMedit |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Yes, it is a bug. It only occurs in string constants so you could use a variable containing ")" or chr$(41). The same for "(". Sorry to say that V4.5C does not fix it. Geoff Graham - http://geoffg.net |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
@Geoff, I guess for the TFT-Maximites and the Duinomites is no v4.5C available? Michael causality ≠ correlation ≠ coincidence |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
No, not at this time. Geoff Graham - http://geoffg.net |
||||
twofingers![]() Guru ![]() Joined: 02/06/2014 Location: GermanyPosts: 1593 |
Thanks! ![]() causality ≠ correlation ≠ coincidence |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |