Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:58 04 Sep 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 : MMBasic for Windows - alphas

     Page 3 of 12    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10382
Posted: 07:51pm 18 Feb 2022
Copy link to clipboard 
Print this post

you have 2 double precision random numbers that could be 0.00000000000001 different and will fail the test. If you want to use reals then you need to ensure the abs value of the difference is > 1.0
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4068
Posted: 08:19pm 18 Feb 2022
Copy link to clipboard 
Print this post

  Michal said  
  matherp said  Make els and ela integers and it will work. You are testing for equality between floats - never a good idea

The fact is, it works.

Michal

If it works, it's chancy (at best).

John
 
flip
Senior Member

Joined: 18/07/2016
Location: Australia
Posts: 114
Posted: 10:51pm 18 Feb 2022
Copy link to clipboard 
Print this post

Latest version now works on my Atom Single CPU,
Thanks matherp
Thanks Dave for PM prompt.

'quit' command (like MMDOS) would be nice...haven't checked for alternative yet...if its there I'll find it...Can do lots of testing now.
thanks again
Phil
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10382
Posted: 10:52pm 18 Feb 2022
Copy link to clipboard 
Print this post

  Quote  if its there I'll find it


CTRL-SHIFT-X
 
Michal
Senior Member

Joined: 02/02/2022
Location: Poland
Posts: 125
Posted: 11:01pm 18 Feb 2022
Copy link to clipboard 
Print this post

This QUIT is a nice idea (for closing MMBASIC).
Maybe even the option to start with hidden windows would be useful. Then QUIT after executing the application would close the hidden MMBASIC.
E.g.
10 OPEN "fox2.txt" FOR OUTPUT AS #1
20 for i=0 to 4999
30 PRINT #1, "The quick brown fox"
40 PRINT #1, "jumps over the lazy dog "; i
50 next
60 PRINT #1
70 CLOSE #1
QUIT

Michal
Edited 2022-02-19 09:08 by Michal
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6299
Posted: 02:30am 19 Feb 2022
Copy link to clipboard 
Print this post

If you start a program that changes MODE using RUN "test.bas",
the mode will change and the graphics window gets focus.

If you start the same BAS program by drag and drop onto the desktop shortcut or from MMEdit etc, (using the commandline parameter), the program runs but the graphics window does NOT get focus.

Jim
VK7JH
MMedit
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 03:03am 19 Feb 2022
Copy link to clipboard 
Print this post

GUI PAGE throws an error

Error : PAGE is not declared

Doug.
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 587
Posted: 03:13am 19 Feb 2022
Copy link to clipboard 
Print this post

how to play Backgroundmusic and effekts the same time.

thx
Plasma
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 07:55am 19 Feb 2022
Copy link to clipboard 
Print this post

  JohnS said  
  Michal said  
  matherp said  Make els and ela integers and it will work. You are testing for equality between floats - never a good idea

The fact is, it works.

Michal

If it works, it's chancy (at best).

John


Oh heck yeah. Just reminded me of a costly mistake, doing just this. The system only had this data-type and it "worked".....until I boarded the plane for home. I had to go back.  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 8049
Posted: 09:11am 19 Feb 2022
Copy link to clipboard 
Print this post

Hummmm....
The fact is, it DOESN'T work - reliably. It *might* work today, on this system, but that doesn't mean it will work next week on a different system loaded with the identical code.  :(

You shouldn't test for equality between anything other than integers or strings.
less/greater than can and should be used with floats etc.
Edited 2022-02-19 19:14 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Romeo

Newbie

Joined: 11/02/2022
Location: France
Posts: 24
Posted: 09:47am 19 Feb 2022
Copy link to clipboard 
Print this post

  Michal said  This QUIT is a nice idea (for closing MMBASIC).
Maybe even the option to start with hidden windows would be useful. Then QUIT after executing the application would close the hidden MMBASIC.
Michal

+1 on that, and even more maybe: possibility to reduct the window to the status bar, as other windows app. do, it maybe will reduce the CPU utilisation to 0 when the app is idle (actually still using from 5 to 10 percent of one CPU core when MMBais does nothing).
But I think it is a Pixel Engine limitation, thus cannot be done.
 
Romeo

Newbie

Joined: 11/02/2022
Location: France
Posts: 24
Posted: 10:41am 19 Feb 2022
Copy link to clipboard 
Print this post

  matherp said  V5.07.03a3
PLAY MP3
PLAY PAUSE
PLAY RESUME
PLAY STOP
PLAY VOLUME

PLAY VOLUME does'nt works for me, setting VOLUME before playing an .mp3 , or after having paused then resumed it.
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 299
Posted: 11:11am 19 Feb 2022
Copy link to clipboard 
Print this post

Hi,
2022-02-17_084530_MMBasic last one that runs OK  and 2022-02-19_035224_MMBasic for me just crashes on opening :(

OS WIN7

Problem signature:
 Problem Event Name: BEX
 Application Name: MMBasic.exe
 Application Version: 0.0.0.0
 Application Timestamp: 620fd8b1
 Fault Module Name: StackHash_0a9e
 Fault Module Version: 0.0.0.0
 Fault Module Timestamp: 00000000
 Exception Offset: 2abefc64
 Exception Code: c0000005
 Exception Data: 00000008
My MMBasic 'sand box'
 
Romeo

Newbie

Joined: 11/02/2022
Location: France
Posts: 24
Posted: 11:16am 19 Feb 2022
Copy link to clipboard 
Print this post

  electricat said  

Problem signature:
 Fault Module Name: StackHash_0a9e

The error is related to Data Execution Prevention.
https://social.technet.microsoft.com/Forums/office/en-US/3932e3eb-c034-4eb7-aa06-4a0a8e6ea493/fault-module-namestackhash0a9e?forum=w7itprogeneral
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10382
Posted: 12:04pm 19 Feb 2022
Copy link to clipboard 
Print this post

  Quote  PLAY VOLUME does'nt works for me, setting VOLUME before playing an .mp3 , or after having paused then resumed it.


As always more specific info needed as it works for me in both cases. Try PLAY VOLUME 25,25 to start with
Edited 2022-02-19 22:07 by matherp
 
Romeo

Newbie

Joined: 11/02/2022
Location: France
Posts: 24
Posted: 12:26pm 19 Feb 2022
Copy link to clipboard 
Print this post

  matherp said  Try PLAY VOLUME 25,25 to start with

1000 apologises, it totally works. I only found a very synthetic document source about the PLAY command, wich did'nt specify there are 2 parameters. Sorry.
 
Michal
Senior Member

Joined: 02/02/2022
Location: Poland
Posts: 125
Posted: 12:50pm 19 Feb 2022
Copy link to clipboard 
Print this post

For me, on Windows7 (64), the graphics console does not start, the program freezes and the RAM occupancy increases by 1.5 GB

Michal
 
Romeo

Newbie

Joined: 11/02/2022
Location: France
Posts: 24
Posted: 01:23pm 19 Feb 2022
Copy link to clipboard 
Print this post

  Michal said  For me, on Windows7 (64), the graphics console does not start, the program freezes and the RAM occupancy increases by 1.5 GB

Michal

Did you checked the Error Events Manager? It may gives some usefull infos about the reason, maybe the same as @electricat, has he uses the same OS version.
 
Michal
Senior Member

Joined: 02/02/2022
Location: Poland
Posts: 125
Posted: 02:07pm 19 Feb 2022
Copy link to clipboard 
Print this post

Nazwa aplikacji powodujacej blad: MMBasic.exe, wersja: 0.0.0.0,
sygnatura czasowa: 0x620fd8b1
Nazwa modulu powodujacego blad: unknown, wersja: 0.0.0.0,
sygnatura czasowa: 0x00000000
Kod wyjatku: 0xc0000005
Przesuniacie bledu: 0x2ae5fbc4
Identyfikator procesu powodujacego blad: 0x1760
Godzina uruchomienia aplikacji powodujacej blad: 0x01d82597fa8508a3
Sciezka aplikacji powodujacej blad: D:\MMBasic\MMBasic.exe
Sciezka modulu powodujacego blad: unknown

Michal
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10382
Posted: 02:11pm 19 Feb 2022
Copy link to clipboard 
Print this post

Has anyone got the latest version running on W7? I'm not aware of using anything W10+ specific but all my machines are on W10/W11 so no way of testing the out-of-date non-supported W7
 
     Page 3 of 12    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025