Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Outlook
bcm
calendaring
contacts
fax
general
installation
interop
outlook
printing
program_addins
program_forms
program_vba
teamfolders
thirdpartyutil
  
 
date: Mon, 29 Jun 2009 08:10:03 GMT,    group: microsoft.public.outlook.program_addins        back       


Hi, Ken, What should be noticed to avoid memory leak in outlook addin?   
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.

-- 
Message posted via http://www.officekb.com
date: Mon, 29 Jun 2009 08:10:03 GMT   author:   ryotyankou via OfficeKB.com u48591@uwe

Re: Hi, Ken, What should be noticed to avoid memory leak in outlook addin?   
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.

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


"ryotyankou via OfficeKB.com" <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.
>
> -- 
> Message posted via http://www.officekb.com
>
date: Mon, 29 Jun 2009 09:18:33 -0400   author:   Ken Slovak - [MVP - Outlook]

Re: Hi, Ken, What should be noticed to avoid memory leak in outlook addin?   
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?

Ken Slovak - [MVP - Outlook] 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.

-- 
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200907/1
date: Wed, 01 Jul 2009 09:37:52 GMT   author:   ryotyankou via OfficeKB.com u48591@uwe

Re: Hi, Ken, What should be noticed to avoid memory leak in outlook addin?   
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.

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


"ryotyankou via OfficeKB.com" <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?
date: Wed, 1 Jul 2009 09:12:46 -0400   author:   Ken Slovak - [MVP - Outlook]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us