|
-
Apr 22nd, 2004, 06:11 AM
#1
Thread Starter
Member
Outlook become unstable?!
I'm working on redemption object for outlook.
I've tried the following codes :
set Utils = CreateObject("Redemption.MAPIUtils")
Utils.Cleanup
but the Extended MAPI session is still cached in my outlook. I don't want to restart my computer every time after I ran my VB program.
Is there any help??
Do I need to put those codes every time after I create a redemption object (e.g. safeMailItem)?
Quitters never Win, Winners never Quit, But those who Never Win and Never Quit are Idiots 
-
Apr 22nd, 2004, 10:54 AM
#2
Post a little more code. Are you setting your objects to nothing
and logging off any sessions when your addin disconnects?
Just another reason that I don't like to use third party controls.
When possible always try to code around the security of Outlook.
You can use Digital Signatures (Certificates) and make your code Trusted.
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 22nd, 2004, 12:12 PM
#3
Thread Starter
Member
I'm having my work replacement in a company for my college year...my boss asked me to use redemption object and I didn't know this thing b4...So I'm searching around and trying everything by myself.
Everytime after I created a redemption object I will use cleanup.
After I use ".cleanup", I will set everything to nothing.
Is there anything wrong?
Quitters never Win, Winners never Quit, But those who Never Win and Never Quit are Idiots 
-
Apr 22nd, 2004, 02:52 PM
#4
No, nothing wrong. Redemption does have limitations, but it
does help streamline getting around the security issues.
It is just my personal opinion and experience about third party
controls. I don't like having my programs depend upon another
product with its bugs and limitations. There is enough of those in
our own programs.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Apr 23rd, 2004, 04:04 AM
#5
Thread Starter
Member
so can you tell me how offen should I cleanup my redemption? Just only one when I disconnect to outlook or everytime when I create and finish using a redemption object?
Alos, should I set all the redemptiuon object to Nothing then start to claen up?
In my program, I do clean up first then set all the redemption to nothing
Quitters never Win, Winners never Quit, But those who Never Win and Never Quit are Idiots 
-
Apr 23rd, 2004, 12:52 PM
#6
Without seeing all your code and program logic I can not give you
a straight answer on how ofter to cleanup, but there is an isue
about the.Cleanup method.
"Redemption needs to keep reference to the IMAPISession
Extended MAPI interface. Outlook 2002 might have a problem
properly closing if there is an outstanding reference. Calling this
method ensures that Redemption cleans up its internal
references to all Extended MAPI objects. "
And ...
"Some Redemption objects (such as MAPIUtils or AddressEntry)
need Extended MAPI session. For the performance reasons, the
session is then saved for later use either by the same or other
Redemption objects. Due to the redesigned Extended MAPI
support in Outlook 2002, it might not close properly if there is an
outstanding reference to the session. To fix the problem, call
MAPIUtils.Cleanup or AddressEntry.Cleanup (or
SafeCurrentUser.Cleanup); this will cause Redemption to release
the Extended MAPI session."
HTH.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|