Problems programmatically creating items in PSTs with Outlook 2003

C

Chris

I have a test application that simply creates a PST file, creates a number of
empty messages within it and saves them (using the MAPI functions
CreateMessage and SaveChanges). The process of creating another PST file and
messages within it is repeated.

When this program is run on a system with Outlook 2003 base or SP1
installed, it behaves correctly. However after I upgraded Outlook 2003 to
SP2, a memory leak of approximately 3-4MB was observed after the first
message was written to each new PST file:

PST files written to Memory used (KB)
1 13,144
2 16,680
3 20,168
4 23,660
5 27,144
6 30,632
7 34,124
8 37,676
9 41,160
10 44,716

After some more investigation, I could reproduce this memory leak on 4 out
of 5 PCs with Outlook 2003 SP2 installed. On comparing the Outlook dlls that
were installed on these PCs, the only noticeable difference was the version
of Outlfltr.dll installed. On the PCs where the memory leak was observed,
V1.2.32.1 of Outlfltr.dll was installed. On the PC where there was no memory
leak V1.4.2607.0 was installed.

On the PC with Outlfltr.dll V1.2.32.1 installed, I performed an Office
update and installed the latest Junk Email Filter update for Outlook 2003
SP2. This installed Outlfltr.dll V1.4.2607.0 and the memory leak was fixed.

Could anybody explain why the Outlook Junk Email Filter dll would cause a
memory leak with programmatically creating messages in a PST?

Thanks in advance,
Chris
 
P

Peter Huang [MSFT]

Hi Chris,

When we program against outlook, we are utilizing the Outlook Object Modal.
So I think you may try to do that with Outlook Object Modal.
For MAPI issue, we have specified newsgroup, you can post in the newsgroup
below.
microsoft.public.win32.programmer.messaging

Also I have some misunderstanding about your table's data.
Do you mean when you have 10 PST file, the outlook.exe will occupy 44,716
KB memory?
Can you describe your problem more detailed, also please show the data
about the scenario that have not memory leak per your description?

Based on my research, it seems that there is no such memory leak issue in
Outlfltr.dll. If we search Outlfltr.dll in KB, we will get many hits about
the update.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
P

Peter Huang [MSFT]

Hi Chris,

When we program against outlook, we are utilizing the Outlook Object Modal.
So I think you may try to do that with Outlook Object Modal.
For MAPI issue, we have specified newsgroup, you can post in the newsgroup
below.
microsoft.public.win32.programmer.messaging

Also I have some misunderstanding about your table's data.
Do you mean when you have 10 PST file, the outlook.exe will occupy 44,716
KB memory?
Can you describe your problem more detailed, also please show the data
about the scenario that have not memory leak per your description?

Based on my research, it seems that there is no such memory leak issue in
Outlfltr.dll. If we search Outlfltr.dll in KB, we will get many hits about
the update.

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Chris

Hi Peter,

Thanks for your reply.

I was aware of the microsoft.public.win32.programmer.messaging newsgroup,
but unfortunately it's not an MSDN managed newsgroup. However, I'll move my
post over to there.

Regards,
Chris
 
C

Chris

Ooops, apologies - I see that microsoft.public.win32.programmer.messaging is
managed!
 
P

Peter Huang [MSFT]

Hi

Thanks for your update!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top