Microsoft KB Archive/208590

= BUG: CommandBar: "Memory Could Not Be Read" Error =

Article ID: 208590

Article Last Modified on 8/19/2005

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0

-



This article was previously published under Q208590



SYMPTOMS
If a ComboBox in a CommandBar has the focus while running a project in emulation, and the form is then closed via the CommandBar, an Application Error will result.

Note that this behavior occurs only in the emulator.



RESOLUTION
This error does not occur if another control is selected before the Close button of the CommandBar is clicked or if the Close button of the Form is clicked.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
 Start a new Windows CE HPC Project in Visual Basic. Form1 is created by default. When the Project Properties dialog appears, ensure that the Run on Target value is set to Handheld PC Emulation. Select Components from the Project menu, and select the Microsoft CE CommandBar Control 6.0. Add a CommandBar control to Form1.  Paste the following code into the code module of Form1:

Option Explicit

Private Sub Form_Load Dim C As CommandBarComboBox Set C = CommandBar1.Controls.Add(cbrComboBox, "MyCombo") End Sub  Run the project.</li> Set the focus to the ComboBox by selecting it.</li> Click the Close button on the CommandBar to close the form. Note that an Application Error in pvbload.exe results.</li></ol>

The problem happens if any ComboBox on the CommandBar has the focus when the Close button on the CommandBar is clicked: the ComboBox does not have to be empty.

Additional query words: vbce vbce6 wince wce

Keywords: kbbug kbtoolkit kbpending KB208590

-

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

© Microsoft Corporation. All rights reserved.