A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Help with CDO



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 26th 09, 07:56 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help with CDO

Where is this code running? Is it running when Outlook is also running?

Is "testuser" the name of the mailbox or the Exchange alias or what? Same
for "testuser2".

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Bob Smith" wrote in message
...
Thanks for the information. I changed my logon information too;

strProfileInfo = "Your Servername" & vbLf & "Your Mailbox"
objSession.Logon "", "", False, True, 0, False, strProfileInfo

I still have the same problem. I am hitting entire exchange servers
passing
in the Alias as the "Your Mailbox" field. In every case where multiple
results are returned as in my testuser example I get the error.

-2147221231 The information store could not be opened. [MAPI 1.0 -
[MAPI_E_LOGON_FAILED(80040111)]]

It's not permissions I know for sure as I can connect to this using my
logged on account with outlook. The only difference is that multiple
selections popup when creating the profile.


  #2  
Old January 26th 09, 11:29 PM posted to microsoft.public.outlook.program_vba
Bob Smith
external usenet poster
 
Posts: 34
Default Help with CDO

It's a VBscript calling CDO 1.2. I got this working now by passing in the
users Legacy Exchange DN. I do however run into a slight problem after some
time where I receieve an error there is not enouogh memory. I checked and the
script is only using about 20MB and this server has a lot of memory. What I
do see though is 1000's of Auto Created MAPI sessions are not being cleaned
up. I have set objSession.Logoff and objSession = Nothing, but it doesn't
seem to clean up the mapi sessions in the registry.

"Ken Slovak - [MVP - Outlook]" wrote:

Where is this code running? Is it running when Outlook is also running?

Is "testuser" the name of the mailbox or the Exchange alias or what? Same
for "testuser2".

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Bob Smith" wrote in message
...
Thanks for the information. I changed my logon information too;

strProfileInfo = "Your Servername" & vbLf & "Your Mailbox"
objSession.Logon "", "", False, True, 0, False, strProfileInfo

I still have the same problem. I am hitting entire exchange servers
passing
in the Alias as the "Your Mailbox" field. In every case where multiple
results are returned as in my testuser example I get the error.

-2147221231 The information store could not be opened. [MAPI 1.0 -
[MAPI_E_LOGON_FAILED(80040111)]]

It's not permissions I know for sure as I can connect to this using my
logged on account with outlook. The only difference is that multiple
selections popup when creating the profile.



  #3  
Old January 27th 09, 01:21 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Help with CDO

Where and how do you see "1000's of Auto Created MAPI sessions"?
What version of MAPI are you using? The standalone (Exchange) or the one
that comes with Outlook?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Bob Smith" wrote in message
...
It's a VBscript calling CDO 1.2. I got this working now by passing in the
users Legacy Exchange DN. I do however run into a slight problem after
some
time where I receieve an error there is not enouogh memory. I checked and
the
script is only using about 20MB and this server has a lot of memory. What
I
do see though is 1000's of Auto Created MAPI sessions are not being
cleaned
up. I have set objSession.Logoff and objSession = Nothing, but it doesn't
seem to clean up the mapi sessions in the registry.

"Ken Slovak - [MVP - Outlook]" wrote:

Where is this code running? Is it running when Outlook is also running?

Is "testuser" the name of the mailbox or the Exchange alias or what? Same
for "testuser2".

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Bob Smith" wrote in message
...
Thanks for the information. I changed my logon information too;

strProfileInfo = "Your Servername" & vbLf & "Your Mailbox"
objSession.Logon "", "", False, True, 0, False, strProfileInfo

I still have the same problem. I am hitting entire exchange servers
passing
in the Alias as the "Your Mailbox" field. In every case where
multiple
results are returned as in my testuser example I get the error.

-2147221231 The information store could not be opened. [MAPI 1.0 -
[MAPI_E_LOGON_FAILED(80040111)]]

It's not permissions I know for sure as I can connect to this using my
logged on account with outlook. The only difference is that multiple
selections popup when creating the profile.





  #4  
Old January 27th 09, 03:36 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help with CDO

That's a problem when you use dynamic logons with CDO, they each create a
new profile entry in the registry. You can write additional code to delete
any profile created that way from the registry when you are finished with
the profile, or if there are existing profiles on the computer that can be
used then use the profile names in the logon call instead of using dynamic
profiles.

It's been many years since I wrote any production CDO code, I moved over to
Redemption coding instead a long time ago. But I vaguely recall that using
client side CDO with dynamic logons creates memory leaks. I could be
mistaken about that however.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Bob Smith" wrote in message
...
It's a VBscript calling CDO 1.2. I got this working now by passing in the
users Legacy Exchange DN. I do however run into a slight problem after
some
time where I receieve an error there is not enouogh memory. I checked and
the
script is only using about 20MB and this server has a lot of memory. What
I
do see though is 1000's of Auto Created MAPI sessions are not being
cleaned
up. I have set objSession.Logoff and objSession = Nothing, but it doesn't
seem to clean up the mapi sessions in the registry.


  #5  
Old January 27th 09, 11:09 PM posted to microsoft.public.outlook.program_vba
Dan Mitchell
external usenet poster
 
Posts: 58
Default Help with CDO

"Ken Slovak - [MVP - Outlook]" wrote in
:
But I vaguely
recall that using client side CDO with dynamic logons creates memory
leaks. I could be mistaken about that however.


_Any_ MAPI logon/logoff cycle generates a memory leak, CDO or not (with
older Exchange or any Outlook version of MAPI)

http://blogs.msdn.com/stephen_griffi...e-intentional-
memory-leak.aspx

The profile-registry-stuff leak is a separate issue with dynamic
profiles.

-- dan

  #6  
Old January 28th 09, 12:51 AM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Help with CDO

Thanks, Dan.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Dan Mitchell" wrote in message
...
"Ken Slovak - [MVP - Outlook]" wrote in
:
But I vaguely
recall that using client side CDO with dynamic logons creates memory
leaks. I could be mistaken about that however.


_Any_ MAPI logon/logoff cycle generates a memory leak, CDO or not (with
older Exchange or any Outlook version of MAPI)

http://blogs.msdn.com/stephen_griffi...e-intentional-
memory-leak.aspx

The profile-registry-stuff leak is a separate issue with dynamic
profiles.

-- dan


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.