I copied and pasted your code Kaisuo, substitute one of my own bmp files and it worked just fine here. And interestingly enough it also worked just fine without declaring g_background to be a TImage. Maybe someone else with more experience than me with Blitz MAX would be to explain why that works? Oh wait, I think I figured that answer out on my own, neither strict nor superstrict mode are being declared here so it automatically figures out its own type? I'm just too used to programming in those modes hehe.
Anyhow, digressing. I experimented and it looks like the problem is that g_background isn't loading the bitmap file. But something is being included otherwise your program wouldn't even compile. So maybe your bitmap file is corrupted then? Because the " Attempt to access field or method of null object" error is thrown when attempting to display the object without anything having been loaded into it first.
Anyhow, digressing. I experimented and it looks like the problem is that g_background isn't loading the bitmap file. But something is being included otherwise your program wouldn't even compile. So maybe your bitmap file is corrupted then? Because the " Attempt to access field or method of null object" error is thrown when attempting to display the object without anything having been loaded into it first.