here is a program that demonstrates the bug. Press the spacebar to render new cubes. Sometimes it'll crash the first time, sometimes you have to press the spacebar a few times before it crashes.
It is crashing with "Unhandled Exception:Attempt to access field or method of Null object"
It is stopping in TMesh.bmx, line 1510:
red# =brush.red
Edit: Changed resolution in the code to something more reasonable than my native wide-screen resolution :)
SuperStrict Import sidesign.minib3d Type TCube Field X:Int Field Y:Int Field Z:Int Field Entity:TEntity Function create:TCube(x:Int,y:Int,z:Int) Local Cube:TCube = New TCube Cube.X = X Cube.Y = Y Cube.Z = Z Cube.Entity = CreateCube() PositionEntity Cube.Entity,X,Y,Z Return Cube End Function Method Delete() FreeEntity(Entity) End Method End Type Graphics3D 800,600,32,1 Local Camera:TCamera = CreateCamera() PositionEntity Camera,0,0,-20 Local Light:TLight = CreateLight() RotateEntity Light,45,45,0 Local CubeList:TList = CreateList() For Local x:Int = 1 To 10 Local Cube:TCube = TCube.Create(Rand(-10,10),Rand(-10,10),Rand(0,10)) CubeList.AddLast(Cube) Next While Not KeyHit(KEY_ESCAPE) Cls RenderWorld Flip If KeyHit(KEY_SPACE) For Local Cube:TCube = EachIn CubeList If Rand(1,4) = 1 CubeList.Remove(Cube) Local Cube2:TCube = TCube.Create(Rand(-10,10),Rand(-10,10),Rand(0,10)) CubeList.AddLast(Cube2) End If Next End If Wend
It is crashing with "Unhandled Exception:Attempt to access field or method of Null object"
It is stopping in TMesh.bmx, line 1510:
red# =brush.red
Edit: Changed resolution in the code to something more reasonable than my native wide-screen resolution :)