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 : MMBasic 44b7 playmod/file bug
Author | Message | ||||
psergiu Regular Member Joined: 09/02/2013 Location: United StatesPosts: 83 |
I just installed MMBasic 4.4 beta 7 on my Duinomite Mini to try the playmod command. After i tried copying a .mod file that was too large to a: playmod fails with the "Only one file can be opened" error. Steps to reproduce: copy to SD card 2 mod files whose sizes together are larger that the available space on A: COPY "B:FILE1.MOD" TO "A:" PLAYMOD "A:FILE1.MOD" - file plays okay PLAYMOD STOP COPY "B:FILE2.MOD" TO "A:" - you get the error "No space on media" KILL "A:FILE2.MOD" PLAYMOD "A:FILE1.MOD" - you get the error "Only one internal flash file can be open at a time". You need to reset in order to be able to use playmod again. It seems that the failed copy operation is leaving the file descriptor open or something similar. Thanks. |
||||
psergiu Regular Member Joined: 09/02/2013 Location: United StatesPosts: 83 |
Correction: You need to reset the device or use the NEW command in order to be able to use playmod again. |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
This is a problem with recovering cleanly from an error, a subject fraught with problems. I will fix it in the final release of 4.4 (due soon). Geoff Graham - http://geoffg.net |
||||
psergiu Regular Member Joined: 09/02/2013 Location: United StatesPosts: 83 |
Another related one (sorry if it's for the same bug) - copy FILE.MOD to a: - WRONG.MOD not not exists PLAYMOD "A:WRONG.MOD" - Error: Cannot find file PLAYMOD "A:FILE.MOD" - No error returned but module is not played. value of MM.ERRNO is 6 - All further calls to playmod give the error "Only one internal flash file can be open at a time" |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3194 |
That is a new bug, thanks. I will also fix that in the final release. Geoff Geoff Graham - http://geoffg.net |
||||
Print this page |