FIX: An exception may occur when a kernel driver executes the GetProcAddress function in Windows Embedded Compact 7: "An exception of 'Access Violation' occurs in Kernel"

Article ID: 2746680 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

Consider the following scenario:
  • You create a Windows Embedded Compact 7-based operating system image for an SH4 architecture device or for a MIPS architecture device.
  • You configure the OEMRamTable structure to use the new physical memory architecture of the device.
  • You have a kernel mode driver that passes an invalid pointer in an API. For example, the kernel mode driver passes a pointer to the GetProcAddress(NULL, L"GetNLSVersion"); ) function in the API.

In this scenario, you may receive the following exception:
An exception of 'Access Violation' occurs in Kernel.

Cause

This problem may occur because of an issue in the IsStaticMappedAddress function. When the address of a parameter is invalid, the IsStaticMappedAddress function incorrectly returns TRUE.

Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded Compact 7 Monthly Update August 2012. In the "File information" section, the package file name contains the processor type.

Note This Windows Embedded Compact 7 monthly update is available for download from the following Microsoft Download Center website: 
Windows Embedded Compact 7 Updates

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Files that are included in this update package
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Nkmain.lib3,551,57017-Aug-201219:11public\common\oak\lib\armv5\checked
Nkprmain.lib3,609,18417-Aug-201219:11public\common\oak\lib\armv5\checked
Nkmain.lib3,942,25617-Aug-201219:10public\common\oak\lib\armv5\debug
Nkprmain.lib4,012,86417-Aug-201219:10public\common\oak\lib\armv5\debug
Nkmain.lib2,428,64217-Aug-201219:10public\common\oak\lib\armv5\retail
Nkprmain.lib2,486,93417-Aug-201219:10public\common\oak\lib\armv5\retail
Nkmain.lib3,551,50417-Aug-201219:13public\common\oak\lib\armv6\checked
Nkprmain.lib3,609,11817-Aug-201219:13public\common\oak\lib\armv6\checked
Nkmain.lib3,941,48417-Aug-201219:12public\common\oak\lib\armv6\debug
Nkprmain.lib4,012,09217-Aug-201219:12public\common\oak\lib\armv6\debug
Nkmain.lib2,428,61217-Aug-201219:12public\common\oak\lib\armv6\retail
Nkprmain.lib2,486,90417-Aug-201219:12public\common\oak\lib\armv6\retail
Nkmain.lib3,541,11217-Aug-201219:15public\common\oak\lib\armv7\checked
Nkprmain.lib3,598,50617-Aug-201219:15public\common\oak\lib\armv7\checked
Nkmain.lib3,931,13817-Aug-201219:14public\common\oak\lib\armv7\debug
Nkprmain.lib4,000,91017-Aug-201219:14public\common\oak\lib\armv7\debug
Nkmain.lib2,422,09617-Aug-201219:14public\common\oak\lib\armv7\retail
Nkprmain.lib2,480,38017-Aug-201219:14public\common\oak\lib\armv7\retail
Nkmain.lib3,255,09417-Aug-201219:17public\common\oak\lib\mipsii\checked
Nkprmain.lib3,301,35417-Aug-201219:17public\common\oak\lib\mipsii\checked
Nkmain.lib3,688,45617-Aug-201219:16public\common\oak\lib\mipsii\debug
Nkprmain.lib3,757,26817-Aug-201219:16public\common\oak\lib\mipsii\debug
Nkmain.lib2,193,72617-Aug-201219:16public\common\oak\lib\mipsii\retail
Nkprmain.lib2,240,89217-Aug-201219:16public\common\oak\lib\mipsii\retail
Nkmain.lib3,313,37217-Aug-201219:19public\common\oak\lib\mipsii_fp\checked
Nkprmain.lib3,359,68417-Aug-201219:19public\common\oak\lib\mipsii_fp\checked
Nkmain.lib3,765,31017-Aug-201219:18public\common\oak\lib\mipsii_fp\debug
Nkprmain.lib3,834,16217-Aug-201219:18public\common\oak\lib\mipsii_fp\debug
Nkmain.lib2,254,51017-Aug-201219:18public\common\oak\lib\mipsii_fp\retail
Nkprmain.lib2,301,61817-Aug-201219:18public\common\oak\lib\mipsii_fp\retail
Nkmain.lib3,001,45617-Aug-201219:20public\common\oak\lib\sh4\checked
Nkprmain.lib3,039,00617-Aug-201219:20public\common\oak\lib\sh4\checked
Nkmain.lib3,307,67017-Aug-201219:20public\common\oak\lib\sh4\debug
Nkprmain.lib3,357,71417-Aug-201219:20public\common\oak\lib\sh4\debug
Nkmain.lib2,065,74017-Aug-201219:20public\common\oak\lib\sh4\retail
Nkprmain.lib2,107,63217-Aug-201219:20public\common\oak\lib\sh4\retail
Nkmain.lib3,079,02417-Aug-201219:22public\common\oak\lib\x86\checked
Nkprmain.lib3,121,15017-Aug-201219:22public\common\oak\lib\x86\checked
Nkmain.lib3,219,26817-Aug-201219:22public\common\oak\lib\x86\debug
Nkprmain.lib3,267,13217-Aug-201219:22public\common\oak\lib\x86\debug
Nkmain.lib2,026,76417-Aug-201219:22public\common\oak\lib\x86\retail
Nkprmain.lib2,069,21017-Aug-201219:22public\common\oak\lib\x86\retail

References

For more information about how to build an operating system image, go to the following Microsoft Developer Network (MSDN) website:
Build an OS (Windows Embedded Compact 7)
For more information about the OEMRamTable structure, go to the following MSDN website:
OEMRamTable (Windows Embedded Compact 7)
For more information about the GetProcAddress function, go to the following MSDN website:
GetProcAddress (Windows Embedded Compact 7)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 2746680 - Last Review: September 10, 2012 - Revision: 1.0
Applies to
  • Windows Embedded Compact 7
Keywords: 
kbqfe kbfix kbpubtypekc kbexpertiseinter kbsurveynew KB2746680

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com