Posted: Sun Jun 09, 2002 4:13 pm
Restored from previous forum. Originally posted by blue-speed.
Hi Guys!
Ive coded for my mp3 player a graphiceffect with sinus and cosins and it works fine but there is a hidden bug that i cant find after a while it steal all my RAM, does anybody know where the bug is?
http://www.purehilfe.de.vu
Hi Guys!
Ive coded for my mp3 player a graphiceffect with sinus and cosins and it works fine but there is a hidden bug that i cant find after a while it steal all my RAM, does anybody know where the bug is?
Code: Select all
StartDrawing(WindowOutput())
FrontColor(0,0,50)
Box(0,30,225,35)
FrontColor(0,250,0)
line_x + 1
If line_x > 220
line_x = - 20
EndIf
Line(line_x,45,250,0)
Line(line_x - 250,45,250,0)
FrontColor(250,0,0)
Line(line_x,43,250,0)
Line(line_x - 250,43,250,0)
For x = 1 To 200
sin_y = 5 * Sin(x)
cos_y = 10 * Cos(x)
cos_x + 4
If cos_x > 250
cos_x = - 30
EndIf
sin_x - 4
If sin_x < 0
sin_x = 210
EndIf
FrontColor(255,0,0)
Plot(sin_x,sin_y+45)
FrontColor(0,255,0)
Plot(cos_x,cos_y+43)
Next
StopDrawing()