Size of the exe file?

BlitzMax Forums/BlitzMax Beginners Area/Size of the exe file?

techjunkie(Posted 2005) [#1]
One simple stupid question,

When I compile a small Max GUI app, the exe file is about 1.14 MB!

Why!?!?


Kuron(Posted 2005) [#2]
Most likely because you are including all the libs. Include only the libs you need via Framework/Import commands


rdodson41(Posted 2005) [#3]
Framework BRL.Blitz
Import BRL.Max2D
Import BRL.StandardIO
'etc. etc.

'code here



FlameDuck(Posted 2005) [#4]
Get Framework Assisstant, and hope it works for your BlitzMAX application.


techjunkie(Posted 2005) [#5]
*blush*

Yeah, of course... :)

Thanks FlameDuck!


techjunkie(Posted 2005) [#6]
Yeah! It became smaller, 91 kB... but,

Building createbutton
Compiling:createbutton.bmx
flat assembler version 1.64
3 passes, 1820 bytes.
Linking:createbutton.exe
Executing:createbutton.exe
Unhandled Memory Exception Error
Process complete

Well, thanks! The mind is short sometimes... :))


Ferminho(Posted 2005) [#7]
Just a stupid thing to add that gave me some headaches till I found it (maybe has something to do with your error?):

when using framework Max2D -for example- you have LoadImage but not the derived loaders for PNG, JPG, etc... so if you don't import BRL.PNGLoader (don't remember the exact name) loadimage won't crash when loading a png but return NULL instead of the TImage - of course this is what should happen! just had to bear in mind that not importing a module that is required is not always easy to detect at compile time :)


Lomat(Posted 2005) [#8]
Also utils such as upx shell (http://upxshell.sourceforge.net/) will allow you to further compress your application into a smaller file.


Hotcakes(Posted 2005) [#9]
techjunkie-->debugger.


bruZard(Posted 2005) [#10]
i think maxgui does'nt work with a framework ... same unhandles memory exception error here...


Chris C(Posted 2005) [#11]
you have to use the import gui driver too
or if you want to be sure the new version of framework assistant works *really* well...


Hotcakes(Posted 2005) [#12]
Apparently instead of importing Max2D you should be Importing glmax2d or d3d7max2d...


rockford(Posted 2005) [#13]
A quick question - how do you know which modules you need to include? Is there a command for this? I'm a total noob with MAX so the answer isn't obvious.


Hotcakes(Posted 2005) [#14]
http://www.blitzbasic.com/Community/posts.php?topic=53123#593848


rockford(Posted 2005) [#15]
Thanks Toby. Dowlnloading now :)


EOF(Posted 2005) [#16]
Let me know how you get on Ian. Any problems and I'll try and guide you along.


Hotcakes(Posted 2005) [#17]
Damn. I was trying to be obnoxious, with a link to a post inside this very topic. Turns out I was helpful. Drat.