Outlook crash

A

Albacrest

I've been using the script debugger to locate the source of a problem where
Outlook either hangs using 99% processor or terminates with "Outlook.exe has
generated errors......etc" It's only happening when I dismiss a reminder

I've got to the point where I can follow the script all the way through and
it reaches the end before Outlook crashes.

What I can't see is the events that occur after Item_Read() and
Item_PropertyChange() have terminated. How can I find out what happens after
my code has apparently completed?

Jeff Mowatt
 
S

Sue Mosher [MVP-Outlook]

You would have to do something, interacting with the item, to cause the
other event handlers in your code to fire. Add breakpoints in the script
debugger first.
 
A

Albacrest

Sue,

Thanks, I managed to find out what it was by a process of eliminating code.
Curiously, the error disappeared when I stopped calling the following
function from the PropertyChange event, yet the debugger skipped through it
time after time with no problem.
Maybe something in here is incompatible with dismissing reminders? FWIW it
isn't needed at this point I realise.

Regards,
Jeff Mowatt

function NotOrganizer()
if isempty(organizer) then
NotOrganizer=false
exit function
end if
if isnull(organizer) then
NotOrganizer=false
exit function
end if
if organizer = "" then
NotOrganizer=false
exit function
end if
if session.currentuser = organizer then
NotOrganizer = false
else
NotOrganizer = true
msgbox "User is not the meeting organizer, update denied"
end if
end function
 
S

Sue Mosher [MVP-Outlook]

I wonder if session.currentuser is the problem. That's a security-blocked
object. Anyway, glad you fixed it.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top