POLINK error message

Just starting out? Need help? Post your questions and find answers here.
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

POLINK error message

Post by dell_jockey »

Hi Group,

when trying to compile a program that has almost 400 address labels in a data section, POLINK gives me the following error:

Code: Select all

POLINK: fatal error: Internal error: write_executable_image
Is there a limit to the number of labels I can have in a datasection? The labels are used to CatchSprite small images.

thanks for any hints!
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

In the following link, Droopy reports a similar problem and then posts a link to Pelles board where he mentions this problem.

http://www.purebasic.fr/english/viewtop ... 1596eca32d

Hope it helps.
I may look like a mule, but I'm not a complete ass.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I can't reproduce it using 4.01. I've created a datasection with 700 address labels followed by an IncludeBinary (all the same file, maybe that makes a difference?) and it compiles and runs without error. Is your exe file size above 64 mb? If so, it's probably the same as Droopy's issue as the number of labels can be at least 700+ and probably much more.

One solution would be to put all the images into one large .bin file and get them in on program start with ReadData-CatchImage 400 times.
BERESHEIT
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

I goofed up- I forgot to compress a couple of those many bitmaps, so that the final executable would need to be larger than 64MB, which obviously is a current POLINK limit. Thanks for your feedback!
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
Post Reply