Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 200026 - Last Review: August 25, 2005 - Revision: 2.4
How To Debug a MAPI Transport Provider
This article was previously published under Q200026
It is often necessary to debug your transport provider during the development process. This article describes how to debug a MAPI Transport provider.
The following are the necessary steps to take when debugging a MAPI transport:
- Start an instance of Microsoft Visual C++ program with no project or workspace loaded.
- Start Microsoft Outlook.
- In Microsoft Visual C++, select the Build menu. Click Start and choose "Attach to Process..."
- Select MAPISP32.exe from the list of processes and click OK.
- From the File menu, select the File and choose "Open..." to load a source code file from your project in which you want to set a breakpoint.
You can also use WinDbg that comes with Windows NT Resource kit to debug MAPI Transport Provider. The following are the steps when you debug with WinDbg:
- Start an instance of Windows Debugger.
- Start Microsoft Outlook.
- From the Debugger menu, click Debug and select "Attach to a Process..."
- Select MAPISP32.exe from the list of processes and click Select.
- From the File menu, select the File and choose "Open Source File ..." to load a source code file from your project in which you want to set a breakpoint.
Additionally, you could load a second instance of Microsoft Visual C++ program to host your transport provider's project, so that you can edit and recompile your code. Make sure to stop and restart Microsoft Outlook when you recompile.
APPLIES TO
- Microsoft Messaging Application Programming Interface
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate