IncludeBinary max size?

Just starting out? Need help? Post your questions and find answers here.
wayne-c
Enthusiast
Enthusiast
Posts: 335
Joined: Tue Jun 08, 2004 10:29 am
Location: Zurich, Switzerland

IncludeBinary max size?

Post by wayne-c »

I try to include a relatively huge setup.exe (200 MB) inside my own setup application in a DataSection with IncludeBinary, but when creating the windows exe of my app I get this error:

Code: Select all

POLINK: fatal error: Internal error: write_executable_image.
- what is the maximum number of bytes that are allowed in a DataSection?
- is there a maximum exe size in PureBasic? in Windows?
As you walk on by, Will you call my name? Or will you walk away?
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: IncludeBinary max size?

Post by Fred »

PureBasic doesn't use Windows 'resource', it put all in the executable part, so I guess you hit the limit here. May be you can create a .rc and use LoadResource_() to get it.
novablue
Enthusiast
Enthusiast
Posts: 165
Joined: Sun Nov 27, 2016 6:38 am

Re: IncludeBinary max size?

Post by novablue »

I am encountering the same issue, i tried to include a big file (over 200mb) via Compiler options -> Resources as .rc file instead but i am still getting the message:

Code: Select all

POLINK: fatal error: Internal error: write_executable_image.
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: IncludeBinary max size?

Post by Fred »

Looks like you hit a limitation as well of the linker
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4663
Joined: Sun Apr 12, 2009 6:27 am

Re: IncludeBinary max size?

Post by RASHAD »

Hi
I never seen any exe file over 200 MB
Photoshop.exe the DAD of the business approximate size is 160 MB
I wish if somebody can refer to such exe file
Egypt my love
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: IncludeBinary max size?

Post by BarryG »

Split the file into 2 x 100 MB binaries. Include both, then extract and combine them at runtime.
Post Reply