framework

BlitzMax Forums/BlitzMax Programming/framework

Hi,

since adding
Framework brl.blitz
Import brl.max2d
Import brl.maxgui
Import pub.mysql

to the beginning of a project to reduce .exe size i get an error, it compiles but its a runtime error with this line:
loginWindow =CreateWindow ("Login:",(ClientWidth(Desktop())/2)-105,(ClientHeight(Desktop())/2)-105,305,210,Null,WINDOW_TITLEBAR|WINDOW_STATUS|WINDOW_CLIENTCOORDS)

the error is Unhandled Memory Exception Error

Instead of:
Import brl.maxgui

Try:
Import BRL.Win32MaxGUI (or the Mac/Linux equivalent)

If you run the source code through my Framework Assistant it should help you too.

I think this is the same problem I had try adding:

?win32
Import BRL.win32maxgui
?macos
Import BRL.CocoaMaxGUI
?

run it thru framework assist and it suggests:
Framework BRL.GLMax2D
Import BRL.RamStream
Import BRL.JPGLoader
Import BRL.EventQueue
Import BRL.Win32MaxGUI
Import BRL.HTTPStream
Import Pub.ISQLDB
Import Pub.MySQL

which works and its half the size of the norm exe

Glad it works for you. You can also try UPX Exe compressor to reduce the size even more.