very very weird blitz3d bug...

Blitz3D Forums/Blitz3D Programming/very very weird blitz3d bug...

bytecode77(Posted 2007) [#1]
.


GfK(Posted 2007) [#2]
.
Um...... Blitz has broken your keyboard?

Try rebooting.


bytecode77(Posted 2007) [#3]
;D
the bug is clearly blitz's one! but blitz3d shows the bug on a totaly wrong line in another function...


very good example:
blah = CreateSphere(whatever())

Graphics3D 1024, 768, 32, 2

Function whatever()
Return 8
End Function



GfK(Posted 2007) [#4]
blah = CreateSphere(whatever())

Graphics3D 1024, 768, 32, 2

Function whatever()
Return 8
End Function


I don't follow. What error are you getting?

You should set a graphics mode BEFORE you start creating/loading meshes.


bytecode77(Posted 2007) [#5]
i know i know. but why is blitz giving an error in the line "Return 8" ?

sometimes i get an error on lines like "End Function"


Tim(Posted 2007) [#6]
then you forgot closeing something..
i got that too.. check your code, you forgot an end if or something else!

blitz is really bugfree for me, i never had a bug there, always own mistakes in code for me


b32(Posted 2007) [#7]
The error occurs, because the 3d mode is not set when the Sphere is created. Try running the program in Debug mode.


GfK(Posted 2007) [#8]
Errors can show up on End Function if you forget an EndIf, Next, Wend, Until etc.

Putting debug mode on is not going to help you find the problem. Its a case of going through your function and finding it yourself. That shouldn't be too difficult if your code is properly indented.


Naughty Alien(Posted 2007) [#9]
as b32 said..you should create 3d scene before you feed it with entities...


bytecode77(Posted 2007) [#10]
the point is, that the error shows up on a line, i didnt expect! that took me a while till i found that error because it occured sometimes on the EndFunction line


Mattizzle(Posted 2007) [#11]
Uhm I know you're like one of the best Blitzerz around but exactly what line were you expecting?


GfK(Posted 2007) [#12]
the point is, that the error shows up on a line, i didnt expect! that took me a while till i found that error because it occured sometimes on the EndFunction line
Um, every version of Blitz has done this, right back to the very first version of Blitz Basic. Six years ago.


Yo! Wazzup?(Posted 2007) [#13]
I'm with Gfk's first post...
EDIT IS AWESOME!!!