FIX: "Application Error Has Occurred" Message

ID: Q185796


The information in this article applies to:
  • Microsoft Windows CE Toolkit for Visual Basic 5.0, version 1.0


SYMPTOMS

When compiling or running a Windows CE Toolkit for Visual Basic (VBCE) 5.0 project, an application error in either Pvb.exe or Vb5.exe may occur. This error would be similar to the following:

The instruction at "0x100020dc" referenced memory at "0x0289e682". The memory could not be read.
The addresses of the error may differ depending on when the error occurs.


CAUSE

Scenario 1

If more than about 4k of string data is contained in a VBCE project, the compilation of the project could result in an error similar to the one displayed above. Control names and any properties that hold string information (including captions, tags, text properties) contribute toward this limit. Once this information exceeds about 4k, memory allocation problems may start to occur.

Scenario 2

An application built with the VBCE may cause an application error in the Pvb.exe file during run-time if a list box with string information longer than 64 Unicode characters exists in the application. When retrieving the string for a list box, VBCE does not allocate enough memory for the null terminator and the string overflows a buffer.


RESOLUTION

Scenario 1

A new version of the PVBCORE.DLL is available that resolves this issue. For more information on how to obtain the new PVBCORE.DLL, please see the following article in the Microsoft Knowledge Base:

Q187932 FILE: PVBCRORE.EXE Contains Updates PVBCORE.DLL

Scenario 2

Limit strings in list boxes to fewer than 64 Unicode characters. An additional alternative is to use the ListView control that ships with the Windows CE ActiveX Control Pack available from the Microsoft Web site located at:

http://www.microsoft.com/windowsce/downloads/pccompanions/actxconpak1.asp


STATUS

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

This problem was corrected in Windows CE Toolkit for Visual Basic 6.00.

Additional query words: vbce vbce5 vbce6

Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: March 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.