Author Topic: QB64 exit... crash maybe or error  (Read 2973 times)

0 Members and 1 Guest are viewing this topic.

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
QB64 exit... crash maybe or error
« on: September 30, 2018, 06:29:12 am »
I used a

DIM VFLIP&
_SNDOPEN ("FLIPV.OGG)
_SNDVOL VFLIP&,1

MY QB64 EXITS WITH "Press any key to continue" then Exits qb64

Is vflip& an internal var... (I had change to a different file .ogg to which it also does the same

changing vflip& to flipit& fixed the problem.. but not sure why it exits with vflip&
MackyWhite

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: QB64 exit... crash maybe or error
« Reply #1 on: September 30, 2018, 09:22:03 am »
Well I see 2 things wrong with _SNDOPEN line.

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
Re: QB64 exit... crash maybe or error
« Reply #2 on: September 30, 2018, 10:57:09 am »
my spelling... i only type this up quick.. the sound file loads fine in qb64 as long as i dont use vflip&

only difference was the name, I changed vflip& and works fine, but when put back just says "Press any key to continue" and stops 

not sure / same when i put it back to vflip& : prints "press any key to continue"

DIM POWERUP&, GAMEMUSIC1&, FLIPIT&, PUSHSPACE&, INPLAC&, PLACED&, TITLE&
POWERUP& = _SNDOPEN(".\DATA\POWERUP.ogg"): PLACED& = _SNDOPEN(".\DATA\RIGHTSPOT.ogg"): INPLAC& = _SNDOPEN(".\DATA\INPLACE.ogg"): PUSHSPACE& = _SNDOPEN(".\DATA\PUSH.ogg"): GAMEMUSIC1& = _SNDOPEN(".\DATA\MUS1.ogg"): FLIPIT& = _SNDOPEN(".\DATA\FLIPV.ogg"): TITLE& = _SNDOPEN(".\DATA\TITLE.ogg")
_SNDVOL POWERUP&, 1: _SNDVOL PLACED&, 1: _SNDVOL INPLAC&, 1: _SNDVOL PUSHSPACE&, 1: _SNDVOL GAMEMUSIC1&, .5: _SNDVOL FLIPIT&, 1: _SNDVOL TITLE&, 1

MackyWhite

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: QB64 exit... crash maybe or error
« Reply #3 on: September 30, 2018, 01:09:30 pm »
Which ide version you use? Do not use last development version. And next - you muss not writing _SNDVOL, something&, 1 because to 1 (100 percent) is it set after opening.

Offline PMACKAY

  • Forum Regular
  • Posts: 188
  • LIFE is Temporary
    • View Profile
Re: QB64 exit... crash maybe or error
« Reply #4 on: September 30, 2018, 09:07:16 pm »
I recompiled the qb64 and this fixed the error. not sure why it was doing this..

Maybe something messed up. but the code works fine after qb64 install done..

MackyWhite