Program stops after using

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

Program stops after using
 
Jurrie Wink




Posts: 3
Joined: 2009-07-03
After a computer crash i developed (bad backup) the same program with additional options.

i use the outlook security for a while now and it works great (with the already old compiled version). After a while the new program stops working.
I can remember the same issue occurs a year ago but the solution ??????

  procedure TForm1.Button1Click(Sender: TObject);
var
Outlook: TOutlookApplication;

begin

   outlook := TOutlookApplication.Create(nil);
   OlSecurityManager1.ConnectTo(outlook.application);
   OlSecurityManager1.DisableOOMWarnings := true;
try
begin
.........
end;

finally
    
OlSecurityManager1.DisableOOMWarnings := false;
end;


perhaps not enabling the warnings.

I hope u have the solution
Posted 01 Jul, 2010 08:56:41 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hi Jurrie,

Jurrie Wink writes:
After a while the new program stops working.


Stops? Are there error messages? If you get warnings, then please provide some code to look at.


Andrei Smolin
Add-in Express Team Leader
Posted 01 Jul, 2010 10:18:58 Top
Jurrie Wink




Posts: 3
Joined: 2009-07-03
It stops. No message at all!
also This happened one year ago.
You helped me fine then but i can remember the solution.
is the outlook.free ok?
or do i have to not enable it???
It was a very simple solution.
Posted 01 Jul, 2010 10:36:26 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hi Jurrie,

Yes, try using outlook.Free();


Andrei Smolin
Add-in Express Team Leader
Posted 02 Jul, 2010 05:26:39 Top