Security shuts application down...

  • Thread starter Thread starter Allan Stewart
  • Start date Start date
A

Allan Stewart

We have developed an application that calls outlook and
sends email to fellow users. Of course when outlook is
called it opens a dialogue box to confirm you are aware
that a outside application is sending a email and do you
want to allow it to continue. If our users click yes
everything happens as expected. If the user clicks No, it
appears that windows shuts down our application. We get no
error codes it seems to just kill the process. I'm not
sure if this is by design as a security procedure to stop
a virus from replicating or a trappable error we are
missing. Can anyone help confirm the behavior is as
expected or can we trap this error and have only the
instance of outlook terminated. Thanks for your help
 
This has probably something to do with your application and its error
handling. Outlook sends a deny to your application for accessing Outlook.
Your application can then think that it has completed his tasks anyway and
closes or it will just hang or it will indefinitely or... it could do many
things but it is the application that closes itself and not that Outlook
told the application to shut down.

Hope this helps!
 
Your app shouldn't shut down in that case, the email just won't get
sent out. You can completely avoid the problem by either coding the
send in Extended MAPI or in Redemption (www.dimastr.com/redemption)
instead of using the Outlook object model or CDO 1.21. I use
Redemption myself.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
Back
Top