I want to crash Outlook real hard

T

Tom

Yeah, sounds strange, I know

For testing reasons I want Outlook to disable my add-in because of a
crash. I tried *((long*)NULL)=0 and that crashes Outlook just nicely,
but my add-in doesn't get disabled. :(

What do I have to do for that?

Thanks
 
K

Ken Slovak - [MVP - Outlook]

If you want a good crash make sure not to handle exceptions and try spawning
a new thread and using the Outlook object model from that thread without
marshalling it back to your main thread (thread 0). That usually works
nicely.
 
T

Tom

If you want a good crash make sure not to handle exceptions and try spawning
a new thread and using the Outlook object model from that thread without
marshalling it back to your main thread (thread 0). That usually works
nicely.
Thanks Ken!

I tried that, called some functions like lpOutlApp->get_Session (and
release'd some Outlook handles, always nice for a crash ;-) but I
didn't get Outlook to disable me.

It also tried killing the outlook.exe process while my app was
actively working, didn't help either.

Is it possible that I've disabled this Outlook security feature
somehow and forgot? Is there an option / registry key somewhere?

Is there a real definition by MS when add-ins are disabled?

Thanks
 
D

Dmitry Streblechenko

Try to crash in one of the IDTExtensibility2 callbacks when Outlook loads
your add-in.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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

Top