CreateItemFromTemplate throws OutOfMemoryException

Status
Not open for further replies.
Outlook version
Outlook 2013 64 bit
Email Account
POP3
Hi,

we are publishing Outlook forms (*.oft files) using the following code:

olMailItem = _olApp.CreateItemFromTemplate(pathToOftFile, _missing) as MailItem;

olFormDescription = olMailItem.FormDescription;

olFormDescription.DisplayName = "MyDisplayName";

olFormDescription.PublishForm(OlFormRegistry.olPersonalRegistry, _missing);

This works fine. Well, if the Exchange-Cache-Modus is deactivated for the Outlook profile (see image), we receive a OutOfMemoryException:

ChangeFormMessageClass Exception: System.OutOfMemoryException: Nicht genügend Arbeitsspeicher oder Systemressourcen. Schließen Sie einige Fenster oder Programme und versuchen Sie es erneut.

bei Microsoft.Office.Interop.Outlook.ApplicationClass.CreateItemFromTemplate(String TemplatePath, Object InFolder)


Translated ErrorMessage: „Not enough memory. Close the windows or programs an retry it.“

1587015838089.png


I receive the same error message, if the Exchange-Cache-Modus is deactivated and I try to open the form in "Design-Mode".
If I open the form in "Runtime-Mode" to use it, I recognized that the Outlook process allocates additional 36 MB.
Exists a limit?
Regards,
Christian
 
Status
Not open for further replies.

Similar threads

Back
Top