I can't think of any tricks. If you completely replace your implementation
of TOutlookApplication with the one in uOutlookEvents.pas, do you still get
Dmitry Streblechenko (MVP)
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
the class of the same name that was automatically generated by Delphi ...
were effectively doing the same thing). I updated my code to use your unit,
etc. But I was still getting the access violation.
TOutlookApplication.InvokeEvent method (I added a MessageDlg call at the
very start, and I get the access violation before it).
example, I receive the OnNewMail event without an error. It's like
something is going wrong in the internals in accessing the PropertyPages
object being passed through.