Posts: 4,698
Threads: 222
Joined: Apr 2022
Reputation:
322
07-19-2022, 08:56 PM
(This post was last modified: 07-19-2022, 09:00 PM by bplus.)
Hi MasterGy,
Since QB64.exe v 2.0+ you have to be careful using the Function name as a variable in the calculations for the Function.
I rewrote this function to obey this new rule for Functions:
Code: (Select All)
Function kivul
rtn = 0: For t = 0 To 3: rtn = rtn Or (ana(t) < 0 Or ana(t) > maze_s(t) - 1) Or (ana(t) < 0 Or ana(t) > maze_s(t) - 1): Next t
kivul = rtn
End Function
And now the program does not bug out on me while loading screen up!!!
I simply replaced all kivul's with rtn in the Function definition. That is basic fix to most problems of incompatible programs that worked before v 2.0 but now don't.
Pretty cool stuff there MasterGy! way the heck over my head ;-))
724 855 599 923 575 468 400 206 147 564 878 823 652 556 bxor cross forever
Posts: 170
Threads: 14
Joined: Apr 2022
Reputation:
4
if it happens under windows and you free the memory correctly then the problem may be in qb64. it may be a bug. this kind of problem under linux has no serious consequences because the system detects memory overflow and stops the program automatically before it causes any damage but when I was testing qb64 under windows a long time ago, I often had this kind of crash followed irreparably by the instability of the whole system. that's why I had stopped using qb64 under windows 7.