Jump to content

Photo

Crash when compiling this


3 replies to this topic

#1 Karl G ONLINE  

Karl G

    Dragonstomper

  • 732 posts

Posted Mon Jan 28, 2019 9:11 AM

This is just a simple musicplayer I made to test music Maggie has made. It normally compiles fine, but it crashes when attempting to with the current data. It doesn't give any syntax errors; it just crashes. bblint doesn't find any issues with it. Does it compile for anyone else?

Oh, btw, feel free to use the code from the musicplayer however you like if you happen to find it useful to test or play your own music (not that it's anything special, mind you).



Attached File  musicplayer.bas   2.18KB   10 downloads
  • mvo likes this

#2 mksmith ONLINE  

mksmith

    Star Raider

  • 67 posts
  • Location:Melbourne, Australia

Posted Mon Jan 28, 2019 7:23 PM

Karl,

 

Using my VS Code module I get error 'Cannot open includes.bB for reading'. (never mind I thin maybe an issue on my computer).

 

Using Visual bB it appears to compile as you say but doesn't - the .bin is empty. 


Edited by mksmith, Mon Jan 28, 2019 7:46 PM.


#3 Karl G ONLINE  

Karl G

    Dragonstomper

  • Topic Starter
  • 732 posts

Posted Mon Jan 28, 2019 7:33 PM

Thanks for trying it. I should also note that this isn't something that I need to resolve, but it seems to be a bug.

#4 mksmith ONLINE  

mksmith

    Star Raider

  • 67 posts
  • Location:Melbourne, Australia

Posted Mon Jan 28, 2019 8:01 PM

Yeah I think it might! I tried moving the __init_music block to the end of the code (and replaced the goto with a return) and added added a gosub __init_music and it works!

 

Nice little tune also! See attached!

Attached Files


Edited by mksmith, Mon Jan 28, 2019 8:01 PM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users