123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|528|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Commented Bug

Tue, 21 Jan 2025, 14:22
dna

Odd Error


If I remove the comment from the print statement the code runs fine but when added nothing happens?
Any thoughts?



-=-=-
DNA
Tue, 21 Jan 2025, 15:45
Jayenkai
I'm not sure, but you're going to get a stack overflow because you're constantly opening While loops, but the goto is jumping up before it reaches the wend.

-=-=-
''Load, Next List!''
Tue, 21 Jan 2025, 18:10
dna
I got it to work but only with the print statement being used.
I restructured it to avoid the stack overflow but the same result unless the print is being used.



-=-=-
DNA
Tue, 21 Jan 2025, 20:01
Dan
I made some tests and your code has some flaws in the logic.

The "if OMIN<>MIN" comparison never gets executed, because you are setting MIN=OMIN before the comparison.

Second thing is: you should draw something on the screen, and when the drawing is done you should flip it immediately.

If you do it as you wanted (when min<>omin) you may have called the CLS command AFTER the drawing is done and therefore clearing the backbuffer - which would display nothing.

see this code:



The explanation why your code works with Print is: the Print statement is probably forcing the flipping of the backbuffer, but only occasionally.

you can see that it is true if you comment out the flip command and uncomment the print statement.

with both flip and print commented out, you should see only the black background.