Problems width Framework

BlitzMax Forums/BlitzMax Beginners Area/Problems width Framework

hi!!
i was trying to get started width frameworks.. i was trying the examples but it gives me always this error message -- Unhandled Exception: Attemp to access field or method of Null object.

the sorce code is:

Rem
:Import specifies the external BlitzMax modules and source files used by the program.
End Rem

Framework BRL.GlMax2D

Import BRL.System

Graphics 640,480,32

While Not KeyHit(KEY_ESCAPE)
Cls
DrawText "Minimal 2D App!",0,0
Flip
Wend