I only found here a statement that an Exe can only have 64MB:
http://www.purebasic.fr/english/viewtop ... tion+limit
Is this still true? Does this include the count for a DataSection?
I tried to generate an Exe with a large Datasection and hit a 128MB limit:
Code: Select all
DataSection
IncludePath "...Use your path here.."
Block1:
IncludeBinary "64MB.Block"
Block2:
IncludeBinary "32MB.Block"
Block3:
IncludeBinary "16MB.Block"
Block4:
IncludeBinary "08MB.Block"
Block5:
IncludeBinary "04MB.Block"
Block6:
IncludeBinary "02MB.Block"
Block7:
IncludeBinary "01MB.Block"
Block8:
IncludeBinary "01MB.Block"
EndDataSection
Code: Select all
Pfad.s="...Use your path here.."
For Block=0 To 6
Size.i=(1<<Block)*1024*1024
*mem=AllocateMemory(Size)
If *mem
Datei.s=Pfad+RSet(Str(1<<Block), 2, "0")+"MB.Block"
If CreateFile(1, Datei)
Anz.i=WriteData(1, *mem,Size)
If Anz
Debug Anz
Else
Debug "Not written"
EndIf
CloseFile(1)
Else
Debug "File not reated"
EndIf
FreeMemory(*mem)
Else
Debug "Memory not allocated"
EndIf
Next
If I comment out the IncludeBinary at Block8 the
Polink Error doesn't show up.
How can I circumvent this limit of 128MB and generate an
Exe with a larger DataSection?