Page 1 of 1

Please add a check for missing InitSprite()

Posted: Wed May 16, 2007 4:08 pm
by AND51
Hello!

I forgot InitSprite() within my testcode. To prevent future users from searching a non-existing error, I suggest to add a check, if InitSprite() is missing.

Code: Select all

;InitSprite() ;- try this

OpenScreen(640, 480, 32, "DrawingBuffer() Test")

StartDrawing(ScreenOutput())
	buffer=DrawingBuffer()
	For n=1 To 255
		PokeL(buffer+n, n)
	Next
StopDrawing()

FlipBuffers()

Delay(3456)
Commenting 1st line leads to a linker error :shock: that outputs 26 (!) errors...


Please, not that I'm not the best at programming games. Forgive me, if this request is illogical.

Posted: Wed May 16, 2007 4:13 pm
by Trond
I repeat: these kinds of errors are not handled by the IDE, but by the compiler and debugger.

Posted: Wed May 16, 2007 4:21 pm
by AND51
Sorry, it's my mistake. I always swp IDE with debugger... :?

I don't mind wether you add the check to dther debugger or to the IDE... The main thing is, that you understand my request.