Author Topic: Debug bug with build 6.184  (Read 2481 times)

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Debug bug with build 6.184
« on: 2009-Mar-08 »
My game won't run when in Debug mode since I updated GLB to the build 6.184.  In release mode it works - just not in debug mode.

In Debug mode it will just exit without an error.  I've tracked it down to this line ...

IF SPLITSTR( strLine$, st$[], ",") = 7

which has the following in strLine$:

20,FIRE BUTTON INCREASES SPEED,FEUER-KNOPF BESCHLEUNIGT,APPUYEZ LE BOUTON FEU POUR AUGMENTER LA RAPIDITE,JOYSTICKKNAPPEN ÖKAR HASTIGHETEN,jmnoj` ncm) sbekhwhb`er qjnpnqr|,SKYTE KNAPPEN GJØR DET RASKERE

st$[] contains 7 elements (0 to 6) from the previous loop (this is in a loop that has run so far for 19 iterations each with different data in the strLine$ variable).


It was working in the previous build in Debug and Release mode.

Offline Moru

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1787
    • View Profile
    • Homepage
Re: Debug bug with build 6.184
« Reply #1 on: 2009-Mar-08 »
I did this code to test and it runs in debug mode at least, I get a line with "hej" on the debug area. Could there be a character(0) or a linebreak somewhere in the file you are reading in? Check with a hex-editor in the file to see that there isn't any strange characters and also in the variables on the right side when you debug the code.

Code: (glbasic) [Select]
strLine$ = "20,FIRE BUTTON INCREASES SPEED,FEUER-KNOPF BESCHLEUNIGT,APPUYEZ LE BOUTON FEU POUR AUGMENTER LA RAPIDITE,JOYSTICKKNAPPEN ÖKAR HASTIGHETEN,jmnoj` ncm) sbekhwhb`er qjnpnqr|,SKYTE KNAPPEN GJØR DET RASKERE"
IF SPLITSTR( strLine$, st$[], ",") = 7
DEBUG "hej"
ENDIF

MrTAToad

  • Guest
Re: Debug bug with build 6.184
« Reply #2 on: 2009-Mar-08 »
Now, I dont get the debug statement - which to me means it must be the accented characters causing the problem.

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10739
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Debug bug with build 6.184
« Reply #3 on: 2009-Mar-09 »
Send me the project in an email. I might have to debug it thorroughly. Hopefully I can reproduce it.

Offline AndyH

  • Dr. Type
  • ****
  • Posts: 383
    • View Profile
    • http://www.ovine.net/
Re: Debug bug with build 6.184
« Reply #4 on: 2009-Mar-09 »
will do.