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,613 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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