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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now