Microsoft KB Archive/185653

= FIX: MAPIMessage.Object in Watch Window Causes Program Error =

Article ID: 185653

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q185653



SYMPTOMS
Scrolling up and down in the Debug Watch window to see the properties of a MAPIMessage.Object causes an Application error and Visual FoxPro is shut down.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 6.0.



Steps to Reproduce Behavior
 Make sure that you have Microsoft Exchange installed on the test computer and have created a valid Exchange Profile.  Create a program file and type the following code: oleMAPISession = CREATEOBJECT( "MSMAPI.MAPISession" ) oleMAPIMessage = CREATEOBJECT( "MSMAPI.MAPIMessages" ) WITH oleMAPISession .Signon IF ( .SessionID > 0 ) oleMAPIMessage.SessionID = .SessionID ACTIVATE WINDOW watch oleMAPIMessage.FETCH SUSPEND ENDIF ENDWITH  Save and run the program. When the Debug window opens (this may take a minute depending the speed of the computer), enter oleMapiMesssage in the Watch window. Expand the MAPI control (oleMapiMessage) and scroll down or up in the Watch window.

At this point, you will get an Application error and Visual FoxPro shuts down.

Additional query words: vfoxwin kbDSupport kbdse kbvfp600fix

Keywords: kbbug kbfix KB185653

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.