Page 1 of 1

IncludeBinary max size?

Posted: Thu Apr 16, 2020 1:13 pm
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?

Re: IncludeBinary max size?

Posted: Thu Apr 16, 2020 9:10 pm
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.

Re: IncludeBinary max size?

Posted: Sat Apr 01, 2023 5:43 pm
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.

Re: IncludeBinary max size?

Posted: Sun Apr 02, 2023 3:02 pm
by Fred
Looks like you hit a limitation as well of the linker

Re: IncludeBinary max size?

Posted: Sun Apr 02, 2023 3:59 pm
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

Re: IncludeBinary max size?

Posted: Sun Apr 02, 2023 9:55 pm
by BarryG
Split the file into 2 x 100 MB binaries. Include both, then extract and combine them at runtime.