Microsoft Knowledge Base Email Alertz

(200026) - It is often necessary to debug your transport provider during the development process. This article describes how to debug a MAPI Transport provider.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











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

SUMMARY

It is often necessary to debug your transport provider during the development process. This article describes how to debug a MAPI Transport provider.

MORE INFORMATION

The following are the necessary steps to take when debugging a MAPI transport:
  1. Start an instance of Microsoft Visual C++ program with no project or workspace loaded.
  2. Start Microsoft Outlook.
  3. In Microsoft Visual C++, select the Build menu. Click Start and choose "Attach to Process..."
  4. Select MAPISP32.exe from the list of processes and click OK.
  5. 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:

  1. Start an instance of Windows Debugger.
  2. Start Microsoft Outlook.
  3. From the Debugger menu, click Debug and select "Attach to a Process..."
  4. Select MAPISP32.exe from the list of processes and click Select.
  5. 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
Keywords: 
kbhowto kbmsg KB200026
       

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