Hi, Ken, What should be noticed to avoid memory leak in outlook addin?

Status
Not open for further replies.
R

ryotyankou

Hi, Ken, thanks for your help so far, and i can work with my outlook addin

now, but it still have some troubles. I have three toolbar, host, editor and

viewer dialog, in ATL, VC2005, outlook2003. I use CComPtr and CComQIPtr to

process interfaces. Now it is a quite strange that if i open e-mails or

create new ones and then close them. The outlook then seems become sluggish.

This only happen in word editor mode. I do nothing specially, only hide all

other created toolbar(if it is in editor dialog)after create the toolbar. I

check my code again and again but couldn't find any useful informations why

it become sluggish, any sugguestions? Thank you. Ken.

 
K

Ken Slovak - [MVP - Outlook]

There's no way I can tell what's going on, and I don't do C++/ATL

programming. You need to run the debugger and see what processes are

consuming CPU cycles and to profile your code to see if any of it is the

cause of the problem.

"ryotyankou " <u48591@uwe> wrote in message

news:9850b33529a73@uwe...
> Hi, Ken, thanks for your help so far, and i can work with my outlook addin
> now, but it still have some troubles. I have three toolbar, host, editor
> and
> viewer dialog, in ATL, VC2005, outlook2003. I use CComPtr and CComQIPtr to
> process interfaces. Now it is a quite strange that if i open e-mails or
> create new ones and then close them. The outlook then seems become
> sluggish.
> This only happen in word editor mode. I do nothing specially, only hide
> all
> other created toolbar(if it is in editor dialog)after create the toolbar.
> I
> check my code again and again but couldn't find any useful informations
> why
> it become sluggish, any sugguestions? Thank you. Ken.

> >
>
 
R

ryotyankou

Hi, ken, i found that memory leak should be generated by resource files. I

use bitmap file and use PasteFace to set button image. But if i set all

button in text style(msoButtonCaption), the "memory is not enought" dialog

will not show then. Are there something i should notice while using bitmap as

resource? My process is load resource from RC file, save it in clipboard,

close clipboard, then delete the resource, and call PasteFace. Any idea?
- wrote:
> There's no way I can tell what's going on, and I don't do C++/ATL
> programming. You need to run the debugger and see what processes are
> consuming CPU cycles and to profile your code to see if any of it is the
> cause of the problem.
>
> > Hi, Ken, thanks for your help so far, and i can work with my outlook addin
> > now, but it still have some troubles. I have three toolbar, host, editor

> [quoted text clipped - 10 lines]
> > why
> > it become sluggish, any sugguestions? Thank you. Ken.



 
K

Ken Slovak - [MVP - Outlook]

If that causes a memory leak then you're not releasing all the resources

you've instantiated. I don't know how you're doing the code but if you

create any DC's (device contexts) they must be deleted as must anything else

such as memory bitmaps.

"ryotyankou " <u48591@uwe> wrote in message

news:986a9cd6d55d1@uwe...
> Hi, ken, i found that memory leak should be generated by resource files. I
> use bitmap file and use PasteFace to set button image. But if i set all
> button in text style(msoButtonCaption), the "memory is not enought" dialog
> will not show then. Are there something i should notice while using bitmap
> as
> resource? My process is load resource from RC file, save it in clipboard,
> close clipboard, then delete the resource, and call PasteFace. Any idea?
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
R Hi, ken, GetState problem again, come in this post please? Outlook VBA and Custom Forms 4
Alex Cotton "invalid or unqualified reference" on code that should work Outlook VBA and Custom Forms 5
F Should a new email account also create new contacts Using Outlook 2
Brian Murphy Exchange Online Everything a Transport Rule should do and cannot Exchange Server Administration 1
L Should public contacts folder appear in "People" nav pane? Using Outlook 1
F Which upgrade should I go for and how do I do it please? Using Outlook 2
E Should I switch to IMAP? Using Outlook 0
N Outlook should use address in address book before the address in Autocomplete Using Outlook 0
A Unhandled exception: picture argument should be an image BCM (Business Contact Manager) 0
C Server Error: '473 relaying prohibited. You should authenticate first.' Using Outlook 2
M Upgrading HUB 2010 to SP1, getting error "There should only be a single RMS Shared Identity user" Exchange Server Administration 1
S Recovering .sbb file that should be a .bcm file for Business Contact Manager 2010 Using Outlook 3
T Errors - should I be concerned Exchange Server Administration 5
S Me and my big mouth...I said to my customer a district nursing organization down here in New Zealand, that 2 ipaqs should be able to share the same Co Using Outlook 1
C Should be easy: Outlook 2007, can the order of accounts listed under 'All Mail Items' be changed, and if so, how to do it? Using Outlook 2
C outlook should organize my incoming mails into seperate folders that are set up Using Outlook 1
R Should I move this mailbox? Exchange Server Administration 2
Z Hub Transport and Edge is not working as it should Exchange Server Administration 12
O Brand new exchange system should I use 2007 or 2010? Exchange Server Administration 9
H 120GB single mailbox database, should it be split into several smaller databases? Exchange Server Administration 5
C how should i assign an SSL certificate to a CAS array? Exchange Server Administration 2
C How should I repair my DAG if the FSW( File Share Witness ) Server fails? Exchange Server Administration 4
E How to diagnose and repair Outlook 2007?__Tabs and buttons on Ribbon inoperative; should be active. Using Outlook 2
A Should emails sent through the mail merge feature end up in my sent folder? Using Outlook 3
B Email Policy undewr Organization Configuration does not apply as it should Exchange Server Administration 6
J Should I have Exchange 2010 in my little business??? Exchange Server Administration 10
M Wrongly configure as POP I think should be IMAP cant undo. email id is Email removed for privacy Using Outlook 1
A Which SSL should I chose for exchange 2010 Exchange Server Administration 3
M Outlook Web Access could not establish a Secure Sockets Layer (SSL) connection to the Microsoft Exchange Client Access server that should be used to a Using Outlook 1
F What should I do when ScanPst.exe does not repair my outlook.pst? Using Outlook 2
S What should the ExchangeLegacyDN of my "AllRooms" be? Exchange Server Administration 10
J where should I run setup.com /ps Exchange Server Administration 7
E Should I switch to redemption Outlook VBA and Custom Forms 11
E Should I switch to redemption Outlook VBA and Custom Forms 11
O Third-party VSTO 2005 SE plug-in for Outlook 2007: what should I signwith a publisher certificate? Outlook VBA and Custom Forms 3
R Which event should i advise? Outlook VBA and Custom Forms 2
T Re: mailItem.HTMLBody should retrieve only current text Outlook VBA and Custom Forms 1
Q Re: Detecting whether a toolbar is and should be shown Outlook VBA and Custom Forms 5
J 14 Steps To Building Your Bulk Emails So They Get Noticed New Slipstick.com Articles 0
S I noticed most of my rules are not able to be edited or deleted - the option to do so are 'faded' out. A few rules are OK to modify etc. See Using Outlook 3
Similar threads








































Top