![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm sending all the messages contained in a particular folder when Outlook
launches. This can be as many as 500 messages. Watching Outlook.exe in task manager, as each message is sent, the Mem Usage slowly balloons from 24MB at start to 116MB just before crashing. I have tried many different ways of setting my MailItem instances to Nothing. I've also tried moving the sending code to a seperate Sub in the hopes that garbage collection would release each MailItem from memory after being sent. Nothing has worked. What is the correct way to use VBA to sent a MailItem and then release it from memory before sending the next? I can post my code if that'll help, but I'm hoping this situation has come up before and there is a simple solution that I've been unable to find. Thanks for any feedback. |
Ads |
#2
|
|||
|
|||
![]() See if this helps: http://www.vboffice.net/sample.html?...cmd=showite m -- Best regards Michael Bauer - MVP Outlook : Outlook Categories? Category Manager Is Your Tool : VBOffice Reporter for Data Analysis & Reporting : http://www.vboffice.net/product.html?pub=6&lang=en Am Thu, 25 Jun 2009 07:35:02 -0700 schrieb Nathan: I'm sending all the messages contained in a particular folder when Outlook launches. This can be as many as 500 messages. Watching Outlook.exe in task manager, as each message is sent, the Mem Usage slowly balloons from 24MB at start to 116MB just before crashing. I have tried many different ways of setting my MailItem instances to Nothing. I've also tried moving the sending code to a seperate Sub in the hopes that garbage collection would release each MailItem from memory after being sent. Nothing has worked. What is the correct way to use VBA to sent a MailItem and then release it from memory before sending the next? I can post my code if that'll help, but I'm hoping this situation has come up before and there is a simple solution that I've been unable to find. Thanks for any feedback. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exception thrown on MailItem.Send | bstrum | Add-ins for Outlook | 3 | June 5th 07 04:54 PM |
Automate Spell Check on MailItem.Send() ??? | Brian McCullough | Add-ins for Outlook | 1 | March 30th 07 03:18 PM |
How to obtain the body of a MailItem which has not been saved and just only stayed in memory? | IceKettle | Add-ins for Outlook | 0 | November 7th 06 03:24 AM |
2 GB of memory over 1 GB of memory free, and outlook complains of being out of memory | David Hettel | Outlook Express | 7 | October 18th 06 01:08 PM |
Losing handle to MailItem when send | donald | Add-ins for Outlook | 8 | February 1st 06 07:09 PM |