framework

BlitzMax Forums/BlitzMax Programming/framework

Gavin Beard(Posted 2006) [#1]
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


EOF(Posted 2006) [#2]
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.


Scott Shaver(Posted 2006) [#3]
I think this is the same problem I had try adding:

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


Gavin Beard(Posted 2006) [#4]
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


EOF(Posted 2006) [#5]
Glad it works for you. You can also try UPX Exe compressor to reduce the size even more.