Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dotnet interop - Word hangs at Documents.Open, error message "There is insufficient memory. Save the document now."

Posted on 2009-07-10
3
Medium Priority
?
1,639 Views
Last Modified: 2012-06-27
In our c# application (dotnet framework 1.1), we have 2 customers who have a problem at the following code :
Word.Application app = new Word.Application;
app.Documents.Open(...); // error message : "There is insufficient memory. Save the document now."

This only happens when Outlook is opened.
When we close Outlook, it works fine.
Both pc's use Office 2003. They have more then enough RAM, disk space etc. (all other applications are running perfectly, even Word and Outlook).
On all other pc's using Office 2003, everything works fine (Outlook being opened or not).

What's more, the error just appeared in last week's update of our program.
If we go back to the previous version, everything works fine. But : the code for that part of the application did not change, so we think it has something to do with memory usage.
The application uses around 90 MB of memory (in task manager).

What could be the source of this problem ?
Thanks
0
Comment
Question by:vince333
  • 2
3 Comments
 
LVL 15

Expert Comment

by:angus_young_acdc
ID: 24822860
What about the pagefile size?  That has caused issue in the past with applications my company have where multiple Word documents and opened and closed.
0
 

Author Comment

by:vince333
ID: 24823079
i'll try increasing the pagefile
(max size is 744 mb, total RAM is 2 GB so i don't think it's really related to lack of physical memory)
0
 

Accepted Solution

by:
vince333 earned 0 total points
ID: 24856842
Changing the pagefile did not solve the problem.
But in the meantime we found the solution : just install the latest service pack for Office 2003.

This must have been a memory-related bug in Office :
- open Outlook : app.Documents.Open(...) crashed ("There is insufficient memory. Save the document now.")
- close Outlook : it worked !

After installing SP2, it worked fine again.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question