Outlook Security Manager

Add-in Express™ Support Service
That's what is more important than anything else

Outlook Security Manager
Windows 2000/Outlook 2000 SP3 
Steven Johnson




Posts: 7
Joined: 2004-08-24
Hello,

Using Outlook Security Manager/Add-In-Express to copy contact notes fails using Windows 2000/Outlook 2000 SP3; When using XP Pro/Outlook 2003 everything works fine.

1. I set the following,
Security.DisableOOMWarnings := true;

2. I create a new contact record,
AItem := FFolder.Items.Add(Item[0].ItemType);
(FFolder = MAPIFolder)

3. I assign to an interface,
AItem.QueryInterface(IID__ContactItem,lItem);

4. Assign Notes from a record structure
{protected fields}
try
lItem.Body := Item[0].Body;
lItem.Email1Address := Item[0].Email1Address;
lItem.Email2Address := Item[0].Email2Address;
lItem.Email3Address := Item[0].Email3Address;
lItem.ReferredBy := Item[0].ReferredBy;
except
{silent exception}
SysError('Could not import contact notes: ' + Item[0].Subject);
end; {try}

5. SysError writes the error to a file

Posted 19 Jul, 2005 16:16:30 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Steven,

Do you see a security warning dialog box or there is just an exception? Let's try to find out what kind of exception is risen:

except
  on E: SysUtils.Exception do SysError('Could not import contact notes: ' + Item[0].Subject + ' Error Message: ' + E.Message);
end;

Posted 20 Jul, 2005 07:05:53 Top
Steven Johnson




Posts: 7
Joined: 2004-08-24
I changed the error and here is what we get

OL-07-20-2005 07:39:52AM: Could not import contact notes: ACCOUNTANTS EDUCATION SERVICES Error Message: Access violation at address 3A49F6E2 in module 'OUTLLIB.DLL'. Read of address FFFFFFFF
Posted 20 Jul, 2005 10:06:32 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Steven,

Let's try to temporary disable Outlook Security Manager. Could you please comment the DisableOOMWarnings line of the code and try the add-in?
Posted 21 Jul, 2005 07:11:39 Top
Steven Johnson




Posts: 7
Joined: 2004-08-24
I commented out the section that accesses the e-mail and everything works fine in Outlook 2000, 2002 and 2003. Is it possible to get to the body and e-mail accounts with extended mapi? My understanding is that access with extended mapi will not cause the outlook access warning.

We got "out of resource errors" and random access errors when using Outlook Security Manager.
Posted 03 Aug, 2005 10:18:14 Top
Steven Johnson




Posts: 7
Joined: 2004-08-24
I solved the problem extended mapi! Everything is working on all platforms. :D
Posted 03 Aug, 2005 19:22:10 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Steven,

I am glad everything works in your project. BTW, we have tested the Security Manager with all Outlook versions and it works correctly.
Posted 01 Sep, 2005 07:03:24 Top