Size of the exe file?
BlitzMax Forums/BlitzMax Beginners Area/Size of the exe file?
| ||
One simple stupid question, When I compile a small Max GUI app, the exe file is about 1.14 MB! Why!?!? |
| ||
Most likely because you are including all the libs. Include only the libs you need via Framework/Import commands |
| ||
Framework BRL.Blitz Import BRL.Max2D Import BRL.StandardIO 'etc. etc. 'code here |
| ||
Get Framework Assisstant, and hope it works for your BlitzMAX application. |
| ||
*blush* Yeah, of course... :) Thanks FlameDuck! |
| ||
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... :)) |
| ||
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 :) |
| ||
Also utils such as upx shell (http://upxshell.sourceforge.net/) will allow you to further compress your application into a smaller file. |
| ||
techjunkie-->debugger. |
| ||
i think maxgui does'nt work with a framework ... same unhandles memory exception error here... |
| ||
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... |
| ||
Apparently instead of importing Max2D you should be Importing glmax2d or d3d7max2d... |
| ||
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. |
| ||
http://www.blitzbasic.com/Community/posts.php?topic=53123#593848 |
| ||
Thanks Toby. Dowlnloading now :) |
| ||
Let me know how you get on Ian. Any problems and I'll try and guide you along. |
| ||
Damn. I was trying to be obnoxious, with a link to a post inside this very topic. Turns out I was helpful. Drat. |