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.
Joined: 11/12/2012 Location: United KingdomPosts: 9115
Posted: 11:40pm 23 Dec 2023
Copy link to clipboard
Print this post
It is a limitation, not a bug, live with it or use something else
panky
Guru
Joined: 02/10/2012 Location: AustraliaPosts: 1101
Posted: 03:12am 24 Dec 2023
Copy link to clipboard
Print this post
Without trying to flog a dead horse, the area of interest appears to be the asynchronous interaction between the underlying OS (serial hardware handler and Windows itself), OLC and MMBasic. That is, if you do any form of serial read and IMMEDIATELY follow with a serial close, confusion reigns!
Two solutions/workarounds:-
1. Don't open a comport, do a read then immediately close the com port in any loop (not recommended anyway as all you are doing is wasting system resources in repetitively creating buffers then freeing them);
2. If you MUST do 1 above out of sheer stubbornness, put a PAUSE 1 immediately above the CLOSE statement and live with the performance hit ( on my i7 laptop, a pause of 500uS appears to be the crossover between conflict (lockup) and reliable operation).
The ' works with MMBasic for DOS ' overlooks the complexity added through OLC.
Sorry to butt in Peter but I'm with you - live with it!
Doug.... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
Turbo46
Guru
Joined: 24/12/2017 Location: AustraliaPosts: 1611
Posted: 03:42am 24 Dec 2023
Copy link to clipboard
Print this post
I have put my whip away I can live with it and will let sleeping dogs lie.
I was just a bit frustrated when people were trying something different and claiming not to to find a problem. It IS a bit of a shock when MMB4W just crashes with no warning.
To try to avoid another kerfuffle over this happening again to someone else in the future, is it worth putting something in the manual to describe the cause and the work around(s)?
BillKeep safe. Live long and prosper.
phil99
Guru
Joined: 11/02/2018 Location: AustraliaPosts: 2135
Posted: 10:08am 24 Dec 2023
Copy link to clipboard
Print this post
My apologies for that. In my blissful ignorance I was unaware of the difference, imagining serial data is all the same. If it's shoved in one end and comes out the other, job done. After messing about with it on this I see there is more to it.
panky
Guru
Joined: 02/10/2012 Location: AustraliaPosts: 1101
Posted: 01:10am 25 Dec 2023
Copy link to clipboard
Print this post
Cheers Bill,
Will put a note in Appendix A on serial.
Regards, Doug.... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
Turbo46
Guru
Joined: 24/12/2017 Location: AustraliaPosts: 1611
Posted: 06:48pm 25 Dec 2023
Copy link to clipboard
Print this post
Thanks Doug and Phil,
I hope you enjoyed Christmas Day.
BillKeep safe. Live long and prosper.
panky
Guru
Joined: 02/10/2012 Location: AustraliaPosts: 1101
Posted: 04:43am 19 Jan 2024
Copy link to clipboard
Print this post
OPTION CONTROLS appears not to be implemented? Default appears to be 80 but I need a few more Is this an omission or not implemented in 5.07.03b23?... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
phil99
Guru
Joined: 11/02/2018 Location: AustraliaPosts: 2135
Posted: 05:01am 19 Jan 2024
Copy link to clipboard
Print this post
OPTION GUI CONTROLS perhaps?
Edit. No that isn't in the manual either. Edited 2024-01-19 15:04 by phil99
Turbo46
Guru
Joined: 24/12/2017 Location: AustraliaPosts: 1611
Posted: 06:13am 19 Jan 2024
Copy link to clipboard
Print this post
Is this what you want?
BillKeep safe. Live long and prosper.
panky
Guru
Joined: 02/10/2012 Location: AustraliaPosts: 1101
Posted: 04:56am 20 Jan 2024
Copy link to clipboard
Print this post
Thanks guys, had a look through the source and I think it defaults to 1000 in MMB4W and there is no OPTION to change it - as memory is not an issue in a PC, there is no need to scrimp on memory usage by changing the value. Cheers, Doug.... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!