outlook today customization

B

Baji

Hi Ken & Everybody,

I have a query,

I am trying to show an OCX in outlook today page.

I have a problem here, when I am trying to close Outlook, it is not
exiting comletely.

I can see while debugging. Exit Instance of the OCX is called when
outlook is closed.

And, without the ocx (unregistered) outlook closes properly..

Do I need to take care of anything else? Please let me know.

Regards,
Baji.
 
K

Ken Slovak - [MVP - Outlook]

You need to release your OCX and call its release code in the Shutdown()
handler. You probably also should use Marshal.ReleaseComObject and wait for
pending finalizers before you allow the Shutdown() code to complete so that
you're unmanaged objects are definitely released.
 
B

Baji

Hi Ken,

I just have this in the exitinstance of my activex

COleControlModule::ExitInstance();

do I need to add anything else? Please let me know.

Thanks,
Baji.


You need to release your OCX and call its release code in the Shutdown()
handler. You probably also should use Marshal.ReleaseComObject and wait for
pending finalizers before you allow the Shutdown() code to complete so that
you're unmanaged objects are definitely released.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm


Hi Ken & Everybody,
I have a query,
I am trying to show an OCX in outlook today page.
I have a problem here, when I am trying to close Outlook, it is not
exiting comletely.
I can see while debugging. Exit Instance of the OCX is called when
outlook is closed.
And, without the ocx (unregistered) outlook closes properly..
Do I need to take care of anything else? Please let me know.
Regards,
Baji.
 
K

Ken Slovak - [MVP - Outlook]

I don't know, it's your ActiveX control. You know what's needed to release
it. I'd think that you need to release the object variables or pointers to
the control in addition to calling the control's release method. It's like
any other object variable or pointer, if you don't release it then it hangs
around.
 
B

Baji

I don't know, it's your ActiveX control. You know what's needed to release
it. I'd think that you need to release the object variables or pointers to
the control in addition to calling the control's release method. It's like
any other object variable or pointer, if you don't release it then it hangs
around.

--
Ken Slovak
[MVP - Outlook]http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Optionshttp://www.slovaktech.com/products.htm


I just have this in the exitinstance of my activex

do I need to add anything else? Please let me know.
Thanks,
Baji.

Thanks for your suggestions Ken,

Best Regards,
Baji.
 

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