Problems using FRAMEWORK command

BlitzMax Forums/BlitzMax Programming/Problems using FRAMEWORK command

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm afraid I have to admit I have something I cannot understand...

How do I use Framework?

I have a sample module...
Module itspeedway.test
'
Import Brl.linkedlist
Import brl.retro
'
ModuleInfo "Author: Si Dunford"
'
Function testmodule$()
Return "Hey its ok"
End Function

The module works fine like this:
Framework itspeedway.test
Print testmodule()

But when I try to use graphics, I get an error, 'Unhandled Exception: Attempt to access field or method of Null object' in module Brl.Max2d - SetBlend()
Framework itspeedway.test
Import brl.max2d
Graphics 800 , 600
SetBlend(ALPHABLEND)
DrawText( testmodule(), 0,0 )

Is there a module I should be including that initialises the graphics object?