That sounds like a different issue. You may need to release objects more aggressively in your add-in(Marshal.ReleaseCOMObject, GC.College, GC.WaitForPendingFinalizers). Setting objects to Nothing in your script code is also good practice.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Oskar Vaia" wrote in message ...
Hi Sue,
i have do what you suggest me.
The problem isn't the content of the variable CB5Source; the problem is,
that the memoryload increases more than when i don't move the items from one
folder to another and back.
when i don't move the items by code, so the memoryload for the
outlook-process is about 300 KB; when i move the items like the code in my
previous posting, so the memoryload for the outlook-process is about 1500
KB. I don't understand why.
I only notice, that when i use the Microsoft Script Editor to debug the
forms-code, the opens Scriptelements doesn't all close.
Is this perhaps the reason for the upper memory usage?
thx & bye
Oskar