Free Support Forum - aspose.com

Large object heap fragmentation while creating document

Hello,

We would like to create a word document in several steps. For each step we are showing progress information in the web user-interface. So for each step we have to load the document again and add the data (at the end of the document).

Loading a large amount of data in memory (and freeing it again) several times will fragment the "large object heap".

How can we append data to a document in several steps without fragmenting the Large Object Heap?

Kind regards,

Bas Klerx

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Why do you need to load a document several times? Maybe in your case you can just use Ajax to show document generating progress. There is a simple example in demos:

http://www.aspose.com/demos/.net-components/aspose.words/csharp/ajax/progress.aspx

Hope this helps.

Best regards.