Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:51 27 Apr 2024 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 : MMBasic 44b7 playmod/file bug

Author Message
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 06:29am 10 Jul 2013
Copy link to clipboard 
Print this post

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 States
Posts: 83
Posted: 10:01am 10 Jul 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 3165
Posted: 03:27pm 10 Jul 2013
Copy link to clipboard 
Print this post

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 States
Posts: 83
Posted: 02:27pm 11 Jul 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 3165
Posted: 03:41pm 11 Jul 2013
Copy link to clipboard 
Print this post

That is a new bug, thanks. I will also fix that in the final release.

Geoff
Geoff Graham - http://geoffg.net
 
Print this page


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

© JAQ Software 2024