Memory Access Violation

Blitz3D Forums/Blitz3D Beginners Area/Memory Access Violation

Memory Access Violations are often caused by a certain media not being loaded which causes you to use an 'empty' handle.

Always check that the media handle isn't equal to zero after loading the media, regardless of what it is.

For example:
fntFixedSys = LoadFont("FixedSys", 14)
If fntFixedSys = 0
	RunTimeError("Unable to load FixedSys font.")
EndIf