Click here to Skip to main content
15,881,424 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi.

In an application embedding MS OLE, we fail to save too large embedded OLE PDFs into our files (IPersistStorage::Save), exceeding some threshold. From what it seems, this occurs due to the default allocation size set of the particular software we are trying to embed (Adobe), as can be seen in IBM’s article:
http://www-01.ibm.com/support/docview.wss?uid=swg1HD72791

A workaround, which slightly improves the situation, as the below two links suggest is to add/set "MaximumAllowedAllocationSize" reg key as DWORD under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole to 0x01e00000

http://www-01.ibm.com/support/docview.wss?uid=swg1HD72791
http://www.edstechnologies.com/Mailer/feb13/tips1.html

This allows us to embed slightly larger PDFs (~10% improvement). We are looking for a way to push this limit further and get a bigger memory allocation for such objects.

Thanks,
Esti
Posted
Updated 17-Aug-13 18:58pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900