Solved

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

Posted on 2009-07-10
3
1,609 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

770 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