EXE Size cannot exceed 64MB ?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

EXE Size cannot exceed 64MB ?

Post by Droopy »

First Step : Create a 100MB File

Code: Select all

*Tampon=AllocateMemory(1024*1024) ;/ Each Packet is 1Mb
CreateFile(0,"c:\100Mo.txt")
  
For n=1 To 100
  FileSeek(0,Lof(0))
  WriteData(0,*Tampon,1024*1024)
Next
  
CloseFile(0)
FreeMemory(*Tampon)
Second Step : Include and Extract the 100MB file

Code: Select all

DataSection 
StartFile1: 
IncludeBinary "C:\100Mo.txt" 
EndFile1: 
EndDataSection 


Size=?EndFile1-?StartFile1


CreateFile(0,"c:\100Mo.NEW")
WriteData(0,?StartFile1,Size)
CloseFile(0)
I get an error while compiling : Polink : fatal error : Internal Error : write_executable_image.
The code works with a 50MB file :(

Same problem with PB 3.94 :cry:
Last edited by Droopy on Wed Nov 29, 2006 12:57 am, edited 1 time in total.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Re: EXE Size cannot exceed 50MB

Post by Kale »

Droopy wrote:The code works with a 50MB file :(
What about a 50.1Mb file?
--Kale

Image
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I need to include a 105MB ZIP File into the EXE and launch it from PB as an installer + Registry tweak :wink:

I say 50MB but i don't know if it works @ 60MB, PB Crash with 100MB includeBinary or Resources :x
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

I found this topic with the same problem with PelleC ( Polink.exe is also the linker )

http://209.85.135.104/search?q=cache:Qq ... =clnk&cd=1

The PelleC Admin Says :
The limit in this case, I think, is an artificial limit in the linker - the EXE file can't be larger than 64MB (I my opinion not that much of a limitation...)
Is there a way to break this barrier ?
White Eagle
Enthusiast
Enthusiast
Posts: 215
Joined: Sun Jan 04, 2004 3:38 am
Location: Maryland

Post by White Eagle »

Can't you compile the EXE normally, and then after its compiled append the ZIP file to the EXE, this should bypass the limitation with polink. I know you can easily append stuff to an exe with AL90s packer lib, but I am sure there are some better suited routines/libs at purearea.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

need to include a 105MB ZIP File into the EXE and launch it from PB as an installer + Registry tweak Wink
Sorry i really dont like this way... why should an installer need 105+ MB of RAM for installing any stuff? I totaly disagree... Write an exe (installer) and save the stuff you wish to install as Resource or inside a datafile to extract each file.... If you make a prod with installer and the prod may be 800 MB... would you really like to see 800 MB of your RAM is used to install an app? :) i dont think so..
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Droopy, I have to ask, what is a "Tampon" in French? In English it means something that makes me laugh very much every time I read it in a French post and I cannot get a translation from BabelFish
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Fangbeast wrote:Droopy, I have to ask, what is a "Tampon" in French? In English it means something that makes me laugh very much every time I read it in a French post and I cannot get a translation from BabelFish
hehe same, but i dont think this translation is quite right (coz thats wat it is in english) ..... :lol:
(off topic i know)

Image
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

@Lexvictory & Fangbeast : Tampon mean Buffer
@va!n : In fact i use Resources, and this is the same error .
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Did you try to add the ZIP file to the Installer.exe, like copy /B InstallerSFX.exe+MyZIP.zip Installer.exe ?
Then in your code you can open Installer.exe as a ZIP archive and extract your files. This is what I do with my library installer (using PureZIP), although I did not tested it with big files.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Droopy wrote:@Lexvictory & Fangbeast : Tampon mean Buffer
@va!n : In fact i use Resources, and this is the same error .
Thanks Droopy. The really weird thing is; that if you think about it; the English meaning could be the same thing :D :D :D
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

fanglez, you're mixing up 'insert' and 'buffer'... or... well... perhaps not, better nog go there <looking for a corner to hide>
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

Fangbeast wrote:
Droopy wrote:@Lexvictory & Fangbeast : Tampon mean Buffer
@va!n : In fact i use Resources, and this is the same error .
Thanks Droopy. The really weird thing is; that if you think about it; the English meaning could be the same thing :D :D :D
FIFO buffer? ;) if you wait long enough..? :roll:
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Let's hope there's no overflow or underflow problems.
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

gnozal wrote:Did you try to add the ZIP file to the Installer.exe, like copy /B InstallerSFX.exe+MyZIP.zip Installer.exe ?
Then in your code you can open Installer.exe as a ZIP archive and extract your files. This is what I do with my library installer (using PureZIP), although I did not tested it with big files.
Did you have some code to extract this ZIP ?
Post Reply